Changeset 25948
- Timestamp:
- 06/12/08 20:24:01 (5 months 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
r24911 r25948 174 174 struct BMenu::LayoutData { 175 175 BSize preferred; 176 uint32 lastResizingMode; 176 177 }; 177 178 … … 1854 1855 BMenu::_ValidatePreferredSize() 1855 1856 { 1856 if (!fLayoutData->preferred.IsWidthSet() )1857 if (!fLayoutData->preferred.IsWidthSet() || ResizingMode() != fLayoutData->lastResizingMode) 1857 1858 _ComputeLayout(0, true, false, NULL, NULL); 1858 1859 … … 1868 1869 // Recalculate only the needed items, 1869 1870 // not the whole layout every time 1871 1872 fLayoutData->lastResizingMode = ResizingMode(); 1870 1873 1871 1874 BRect frame;
