Keep the preferred size ratio into account. This make layout behaviour much more intuitive when resizing a window. Thanks Christof.

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39641 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Clemens Zeidler
2010-11-26 04:20:38 +00:00
parent 2b602c7364
commit 8fa4fd37b7
4 changed files with 38 additions and 14 deletions
+3
View File
@@ -151,6 +151,9 @@ private:
float fSpacing;
Area* fCurrentArea;
Variable* fScaleWidth;
Variable* fScaleHeight;
};
} // namespace BALM
+9 -2
View File
@@ -107,8 +107,12 @@ private:
Area(BLayoutItem* item);
void _Init(LinearSpec* ls, XTab* left, YTab* top,
XTab* right, YTab* bottom);
void _Init(LinearSpec* ls, Row* row, Column* column);
XTab* right, YTab* bottom,
Variable* scaleWidth,
Variable* scaleHeight);
void _Init(LinearSpec* ls, Row* row, Column* column,
Variable* scaleWidth,
Variable* scaleHeight);
void _DoLayout();
@@ -145,6 +149,9 @@ private:
double fContentAspectRatio;
Constraint* fContentAspectRatioC;
Variable* fScaleWidth;
Variable* fScaleHeight;
public:
friend class BALMLayout;