Changeset 17356
- Timestamp:
- 05/07/06 15:58:07 (3 years ago)
- Files:
-
- 1 modified
-
haiku/trunk/src/kits/interface/Menu.cpp (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
haiku/trunk/src/kits/interface/Menu.cpp
r17282 r17356 285 285 } 286 286 287 if (!fAttachAborted) 288 InvalidateLayout(); 287 if (!fAttachAborted) { 288 CacheFontInfo(); 289 LayoutItems(0); 290 } 289 291 } 290 292 … … 743 745 BMenu::Draw(BRect updateRect) 744 746 { 747 if (!fUseCachedMenuLayout) { 748 fUseCachedMenuLayout = true; 749 CacheFontInfo(); 750 LayoutItems(0); 751 Invalidate(); 752 return; 753 } 754 745 755 DrawBackground(updateRect); 746 756 DrawItems(updateRect); … … 779 789 BMenu::InvalidateLayout() 780 790 { 781 CacheFontInfo(); 782 LayoutItems(0); 783 Invalidate(); 791 fUseCachedMenuLayout = false; 784 792 } 785 793
