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:
Augustin Cavalier 2023-03-29 18:35:04 -04:00
parent d2670b490d
commit 8c58c0c5e3

View File

@ -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();