BaseTranslator: Use PreferredSize() not ExplicitPreferredSize() in resize.
The former will use the explicit preferred size if one is set; otherwise, it will use the computed preferred size; whereas the latter will only use the explicitly set one, which if it has not been set, will just be an empty BRect. Fixes #15434, #18329.
This commit is contained in:
parent
d2670b490d
commit
8c58c0c5e3
@ -675,7 +675,7 @@ BaseTranslator::MakeConfigurationView(BMessage *ioExtension, BView **outView,
|
||||
if (view) {
|
||||
*outView = view;
|
||||
if ((view->Flags() & B_SUPPORTS_LAYOUT) != 0)
|
||||
view->ResizeTo(view->ExplicitPreferredSize());
|
||||
view->ResizeTo(view->PreferredSize());
|
||||
|
||||
*outExtent = view->Bounds();
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user