Fixed the issue from ticket 4178 comment 5.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32229 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -327,7 +327,10 @@ BPictureButton* ConfigWindow::AddPictureButton(BView* panel, BRect frame,
|
|||||||
button->SetViewColor(B_TRANSPARENT_COLOR);
|
button->SetViewColor(B_TRANSPARENT_COLOR);
|
||||||
panel->AddChild(button);
|
panel->AddChild(button);
|
||||||
onBM->Lock();
|
onBM->Lock();
|
||||||
button->ResizeTo(onBM->Bounds().Width(), onBM->Bounds().Height());
|
int32 width = onBM->Bounds().Width();
|
||||||
|
int32 height = onBM->Bounds().Height();
|
||||||
|
button->ResizeTo(width, height);
|
||||||
|
button->SetExplicitMaxSize(BSize(width, height));
|
||||||
onBM->Unlock();
|
onBM->Unlock();
|
||||||
panel->RemoveChild(button);
|
panel->RemoveChild(button);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user