Revert "BTwoDimensionalLayout: Removed duplicated code."
This reverts commit fd3e3e7bfb.
Apparently this code wasn't duplicated, as it caused all sorts of
problems in applications (e.g. Debugger was blank).
Fixes #12269.
This commit is contained in:
@@ -21,6 +21,8 @@
|
|||||||
#include "CollapsingLayouter.h"
|
#include "CollapsingLayouter.h"
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
// Some words of explanation:
|
// Some words of explanation:
|
||||||
//
|
//
|
||||||
// This class is the base class for BLayouts that organize their items
|
// This class is the base class for BLayouts that organize their items
|
||||||
@@ -921,6 +923,13 @@ BTwoDimensionalLayout::VerticalCompoundLayouter::InternalGetHeightForWidth(
|
|||||||
}
|
}
|
||||||
|
|
||||||
updateCachedInfo = true;
|
updateCachedInfo = true;
|
||||||
|
|
||||||
|
// get the height for width info
|
||||||
|
fCachedMinHeightForWidth = fHeightForWidthLayouter->MinSize();
|
||||||
|
fCachedMaxHeightForWidth = fHeightForWidthLayouter->MaxSize();
|
||||||
|
fCachedPreferredHeightForWidth
|
||||||
|
= fHeightForWidthLayouter->PreferredSize();
|
||||||
|
|
||||||
} else if (localLayouter->HasHeightForWidth()) {
|
} else if (localLayouter->HasHeightForWidth()) {
|
||||||
// There is a height for width layouter and it has been initialized
|
// There is a height for width layouter and it has been initialized
|
||||||
// in the current layout context. So we just add the height for width
|
// in the current layout context. So we just add the height for width
|
||||||
|
|||||||
Reference in New Issue
Block a user