mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-02-09 04:30:09 +00:00
Standalone: Avoid hitting an assertion when setting resize limits
This commit is contained in:
parent
7b6ad28b46
commit
914119eca5
1 changed files with 2 additions and 2 deletions
|
|
@ -828,8 +828,8 @@ private:
|
|||
const auto extraWindowWidth = borders.getLeftAndRight();
|
||||
const auto extraWindowHeight = extraHeight + borders.getTopAndBottom();
|
||||
|
||||
owner.setResizeLimits (editorConstrainer->getMinimumWidth() + extraWindowWidth,
|
||||
editorConstrainer->getMinimumHeight() + extraWindowHeight,
|
||||
owner.setResizeLimits (jmax (10, editorConstrainer->getMinimumWidth() + extraWindowWidth),
|
||||
jmax (10, editorConstrainer->getMinimumHeight() + extraWindowHeight),
|
||||
editorConstrainer->getMaximumWidth() + extraWindowWidth,
|
||||
editorConstrainer->getMaximumHeight() + extraWindowHeight);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue