1
0
Fork 0
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:
attila 2024-10-22 16:24:59 +02:00
parent 3118ee1e5c
commit 3c38adcc03

View file

@ -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(),