Fix min size reporting of style pane in Haiku font dialogs
* src/haiku_support.cc (class DualLayoutView): (MinSize): Implement correctly with both views.
This commit is contained in:
parent
d15b11b50e
commit
8f391ae26e
1 changed files with 14 additions and 0 deletions
|
@ -2575,6 +2575,20 @@ class DualLayoutView : public BView
|
|||
BView::FrameResized (new_width, new_height);
|
||||
}
|
||||
|
||||
/* This is called by the BSplitView. */
|
||||
BSize
|
||||
MinSize (void)
|
||||
{
|
||||
float width, height;
|
||||
BSize size_1;
|
||||
|
||||
size_1 = view_1->MinSize ();
|
||||
view_2->GetPreferredSize (&width, &height);
|
||||
|
||||
return BSize (std::max (size_1.width, width),
|
||||
std::max (size_1.height, height));
|
||||
}
|
||||
|
||||
public:
|
||||
DualLayoutView (BScrollView *first, BView *second) : BView (NULL, B_FRAME_EVENTS),
|
||||
view_1 (first),
|
||||
|
|
Loading…
Add table
Reference in a new issue