mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-10 23:44:24 +00:00
ResizableWindow: Remove assertion
The assertion can routinely fire on Linux, where a window may go through many size changes from (0, 0) to its actual size due to the nature of how XWindow reports these in subsequent ConfigureNotify events. These subsequent changes aren't visibly observable by users.
This commit is contained in:
parent
3118ee1e5c
commit
3c38adcc03
1 changed files with 0 additions and 4 deletions
|
|
@ -226,10 +226,6 @@ void ResizableWindow::childBoundsChanged (Component* child)
|
|||
{
|
||||
if ((child == contentComponent) && (child != nullptr) && resizeToFitContent)
|
||||
{
|
||||
// not going to look very good if this component has a zero size..
|
||||
jassert (child->getWidth() > 0);
|
||||
jassert (child->getHeight() > 0);
|
||||
|
||||
auto borders = getContentComponentBorder();
|
||||
|
||||
setSize (child->getWidth() + borders.getLeftAndRight(),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue