diff options
| author | Po Lu | 2022-05-05 06:33:49 +0000 |
|---|---|---|
| committer | Po Lu | 2022-05-05 06:33:59 +0000 |
| commit | 8f391ae26eab6654360f621acaeb2bc0935e3d32 (patch) | |
| tree | aa9c4dab520b6d0f5b882b713b9ea13b9404dc15 | |
| parent | d15b11b50e92a13ebe90f28f3ac8791a1385edaf (diff) | |
| download | emacs-8f391ae26eab6654360f621acaeb2bc0935e3d32.tar.gz emacs-8f391ae26eab6654360f621acaeb2bc0935e3d32.zip | |
Fix min size reporting of style pane in Haiku font dialogs
* src/haiku_support.cc (class DualLayoutView):
(MinSize): Implement correctly with both views.
| -rw-r--r-- | src/haiku_support.cc | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/haiku_support.cc b/src/haiku_support.cc index 33acaacaaf4..0ab31bc98dc 100644 --- a/src/haiku_support.cc +++ b/src/haiku_support.cc | |||
| @@ -2575,6 +2575,20 @@ class DualLayoutView : public BView | |||
| 2575 | BView::FrameResized (new_width, new_height); | 2575 | BView::FrameResized (new_width, new_height); |
| 2576 | } | 2576 | } |
| 2577 | 2577 | ||
| 2578 | /* This is called by the BSplitView. */ | ||
| 2579 | BSize | ||
| 2580 | MinSize (void) | ||
| 2581 | { | ||
| 2582 | float width, height; | ||
| 2583 | BSize size_1; | ||
| 2584 | |||
| 2585 | size_1 = view_1->MinSize (); | ||
| 2586 | view_2->GetPreferredSize (&width, &height); | ||
| 2587 | |||
| 2588 | return BSize (std::max (size_1.width, width), | ||
| 2589 | std::max (size_1.height, height)); | ||
| 2590 | } | ||
| 2591 | |||
| 2578 | public: | 2592 | public: |
| 2579 | DualLayoutView (BScrollView *first, BView *second) : BView (NULL, B_FRAME_EVENTS), | 2593 | DualLayoutView (BScrollView *first, BView *second) : BView (NULL, B_FRAME_EVENTS), |
| 2580 | view_1 (first), | 2594 | view_1 (first), |