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:
Augustin Cavalier 2015-08-03 10:56:40 -04:00
parent eae0eccd2e
commit c2e9a9227e
1 changed files with 9 additions and 0 deletions

View File

@ -21,6 +21,8 @@
#include "CollapsingLayouter.h"
// Some words of explanation:
//
// This class is the base class for BLayouts that organize their items
@ -921,6 +923,13 @@ BTwoDimensionalLayout::VerticalCompoundLayouter::InternalGetHeightForWidth(
}
updateCachedInfo = true;
// get the height for width info
fCachedMinHeightForWidth = fHeightForWidthLayouter->MinSize();
fCachedMaxHeightForWidth = fHeightForWidthLayouter->MaxSize();
fCachedPreferredHeightForWidth
= fHeightForWidthLayouter->PreferredSize();
} else if (localLayouter->HasHeightForWidth()) {
// 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