54 auto resultingIdealSize = juce::Rectangle<int>(idealWidth, idealHeight);
55 auto mc = juce::Desktop::getInstance().getComponent(0);
58 auto fBounds = mc->getBounds().toFloat();
59 auto h = fBounds.getHeight();
60 auto w = fBounds.getWidth();
61 if (h > 0.0f && w > 0.0f)
74 resultingIdealSize = juce::Rectangle<float>(w, h).toNearestInt();
78 if (resultingIdealSize.getWidth() < m_minIdealSize.getWidth() && resultingIdealSize.getHeight() < m_minIdealSize.getHeight())
80 idealWidth = m_minIdealSize.getWidth();
81 idealHeight = m_minIdealSize.getHeight();
85 idealWidth = resultingIdealSize.getWidth();
86 idealHeight = resultingIdealSize.getHeight();