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:
@@ -151,6 +151,9 @@ private:
|
||||
float fSpacing;
|
||||
|
||||
Area* fCurrentArea;
|
||||
|
||||
Variable* fScaleWidth;
|
||||
Variable* fScaleHeight;
|
||||
};
|
||||
|
||||
} // namespace BALM
|
||||
|
||||
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user