In BALMLayout, make AddView(...) consistent with other layouts.

If a BView is added which has a BLayout, use the layout as a BLayoutItem
to represent that view, as other layouts do.
This commit is contained in:
Alex Wilson
2012-05-03 08:44:19 +12:00
parent 9b0221fd43
commit 574533ef12
2 changed files with 22 additions and 15 deletions
+1 -2
View File
@@ -150,8 +150,7 @@ private:
float InsetForTab(XTab* tab);
float InsetForTab(YTab* tab);
/*! Add a view without initialize the Area. */
BLayoutItem* _CreateLayoutItem(BView* view);
BLayoutItem* _LayoutItemToAdd(BView* view);
void _UpdateAreaConstraints();