Applied patch by Philippe Saint-Pierre:
* Add spacing around the tab view. Thanks, Philippe! BTW, the tab view will come in handy again, now with the additional options that sub-pixel rendering is going to offer... :-) git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@25119 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -55,6 +55,7 @@ MainWindow::MainWindow()
|
|||||||
rect = Bounds();
|
rect = Bounds();
|
||||||
rect.top += 5;
|
rect.top += 5;
|
||||||
rect.bottom -= 20 + buttonHeight;
|
rect.bottom -= 20 + buttonHeight;
|
||||||
|
rect.left += 5;
|
||||||
BTabView *tabView = new BTabView(rect, "tabview", B_WIDTH_FROM_LABEL);
|
BTabView *tabView = new BTabView(rect, "tabview", B_WIDTH_FROM_LABEL);
|
||||||
|
|
||||||
rect = tabView->ContainerView()->Bounds().InsetByCopy(5, 8);
|
rect = tabView->ContainerView()->Bounds().InsetByCopy(5, 8);
|
||||||
@@ -82,7 +83,7 @@ MainWindow::MainWindow()
|
|||||||
tabView->ContainerView()->ResizeBy(0, heightDiff);
|
tabView->ContainerView()->ResizeBy(0, heightDiff);
|
||||||
}
|
}
|
||||||
|
|
||||||
ResizeTo(tabView->Bounds().Width(), tabView->Frame().bottom + 20 + buttonHeight);
|
ResizeTo(tabView->Bounds().Width() + 10, tabView->Frame().bottom + 20 + buttonHeight);
|
||||||
view->AddChild(tabView);
|
view->AddChild(tabView);
|
||||||
fFontsView->ResizeToPreferred();
|
fFontsView->ResizeToPreferred();
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user