|
|
@@ -335,9 +335,7 @@ void ResizableWindow::setConstrainer (ComponentBoundsConstrainer* newConstrainer |
|
|
|
resizableBorder = nullptr;
|
|
|
|
|
|
|
|
setResizable (shouldBeResizable, useBottomRightCornerResizer);
|
|
|
|
|
|
|
|
if (ComponentPeer* const peer = getPeer())
|
|
|
|
peer->setConstrainer (newConstrainer);
|
|
|
|
updatePeerConstrainer();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
@@ -384,9 +382,7 @@ void ResizableWindow::lookAndFeelChanged() |
|
|
|
if (isOnDesktop())
|
|
|
|
{
|
|
|
|
Component::addToDesktop (getDesktopWindowStyleFlags());
|
|
|
|
|
|
|
|
if (ComponentPeer* const peer = getPeer())
|
|
|
|
peer->setConstrainer (constrainer);
|
|
|
|
updatePeerConstrainer();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
@@ -492,7 +488,10 @@ bool ResizableWindow::isKioskMode() const |
|
|
|
void ResizableWindow::updateLastPosIfShowing()
|
|
|
|
{
|
|
|
|
if (isShowing())
|
|
|
|
{
|
|
|
|
updateLastPosIfNotFullScreen();
|
|
|
|
updatePeerConstrainer();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
void ResizableWindow::updateLastPosIfNotFullScreen()
|
|
|
@@ -501,6 +500,13 @@ void ResizableWindow::updateLastPosIfNotFullScreen() |
|
|
|
lastNonFullScreenPos = getBounds();
|
|
|
|
}
|
|
|
|
|
|
|
|
void ResizableWindow::updatePeerConstrainer()
|
|
|
|
{
|
|
|
|
if (isOnDesktop())
|
|
|
|
if (ComponentPeer* const peer = getPeer())
|
|
|
|
peer->setConstrainer (constrainer);
|
|
|
|
}
|
|
|
|
|
|
|
|
void ResizableWindow::parentSizeChanged()
|
|
|
|
{
|
|
|
|
if (isFullScreen() && getParentComponent() != nullptr)
|
|
|
|