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:
@@ -675,7 +675,7 @@ BaseTranslator::MakeConfigurationView(BMessage *ioExtension, BView **outView,
|
|||||||
if (view) {
|
if (view) {
|
||||||
*outView = view;
|
*outView = view;
|
||||||
if ((view->Flags() & B_SUPPORTS_LAYOUT) != 0)
|
if ((view->Flags() & B_SUPPORTS_LAYOUT) != 0)
|
||||||
view->ResizeTo(view->ExplicitPreferredSize());
|
view->ResizeTo(view->PreferredSize());
|
||||||
|
|
||||||
*outExtent = view->Bounds();
|
*outExtent = view->Bounds();
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user