|
|
|
@@ -819,10 +819,22 @@ private: |
|
|
|
#else
|
|
|
|
if (editor != nullptr)
|
|
|
|
{
|
|
|
|
auto rect = getSizeToContainEditor();
|
|
|
|
|
|
|
|
setSize (rect.getWidth(),
|
|
|
|
rect.getHeight() + (shouldShowNotification ? NotificationArea::height : 0));
|
|
|
|
const int extraHeight = shouldShowNotification ? NotificationArea::height : 0;
|
|
|
|
const auto rect = getSizeToContainEditor();
|
|
|
|
|
|
|
|
if (auto* editorConstrainer = editor->getConstrainer())
|
|
|
|
{
|
|
|
|
const auto borders = owner.getContentComponentBorder();
|
|
|
|
const auto extraWindowWidth = borders.getLeftAndRight();
|
|
|
|
const auto extraWindowHeight = extraHeight + borders.getTopAndBottom();
|
|
|
|
|
|
|
|
owner.setResizeLimits (editorConstrainer->getMinimumWidth() + extraWindowWidth,
|
|
|
|
editorConstrainer->getMinimumHeight() + extraWindowHeight,
|
|
|
|
editorConstrainer->getMaximumWidth() + extraWindowWidth,
|
|
|
|
editorConstrainer->getMaximumHeight() + extraWindowHeight);
|
|
|
|
}
|
|
|
|
|
|
|
|
setSize (rect.getWidth(), rect.getHeight() + extraHeight);
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
}
|
|
|
|
|