* fixed a little GUI layout issue
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@23763 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
5a27d5c8a9
commit
133f20b00b
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2006, Haiku.
|
||||
* Copyright 2006-2008, Haiku.
|
||||
* Distributed under the terms of the MIT License.
|
||||
*
|
||||
* Authors:
|
||||
|
@ -80,7 +80,7 @@ StyleView::StyleView(BRect frame)
|
||||
frame.bottom = frame.top + 15;
|
||||
|
||||
fStyleType = new BMenuField(frame, "style type", "Style Type",
|
||||
menu, true);
|
||||
menu, true);
|
||||
AddChild(fStyleType);
|
||||
|
||||
float width;
|
||||
@ -109,9 +109,7 @@ StyleView::StyleView(BRect frame)
|
||||
|
||||
#if __HAIKU__
|
||||
fGradientType = new BMenuField("Gradient Type", menu, NULL);
|
||||
|
||||
fGradientControl = new GradientControl(new BMessage(MSG_SET_COLOR),
|
||||
this);
|
||||
fGradientControl = new GradientControl(new BMessage(MSG_SET_COLOR), this);
|
||||
|
||||
layout->AddItem(BSpaceLayoutItem::CreateVerticalStrut(3), 0, 0, 4);
|
||||
layout->AddItem(BSpaceLayoutItem::CreateHorizontalStrut(3), 0, 1, 1, 3);
|
||||
@ -130,7 +128,7 @@ StyleView::StyleView(BRect frame)
|
||||
#else // !__HAIKU__
|
||||
frame.OffsetBy(0, fStyleType->Frame().Height() + 6);
|
||||
fGradientType = new BMenuField(frame, "gradient type", "Gradient Type",
|
||||
menu, true);
|
||||
menu, true);
|
||||
AddChild(fGradientType);
|
||||
|
||||
fGradientType->MenuBar()->GetPreferredSize(&width, &height);
|
||||
|
Loading…
Reference in New Issue
Block a user