45 auto resultingIdealSize = juce::Rectangle<int>(idealWidth, idealHeight);
46 auto mc = juce::Desktop::getInstance().getComponent(0);
49 auto fBounds = mc->getBounds().toFloat();
50 auto h = fBounds.getHeight();
51 auto w = fBounds.getWidth();
52 if (h > 0.0f && w > 0.0f)
65 resultingIdealSize = juce::Rectangle<float>(w, h).toNearestInt();
69 if (resultingIdealSize.getWidth() < m_minIdealSize.getWidth() && resultingIdealSize.getHeight() < m_minIdealSize.getHeight())
71 idealWidth = m_minIdealSize.getWidth();
72 idealHeight = m_minIdealSize.getHeight();
76 idealWidth = resultingIdealSize.getWidth();
77 idealHeight = resultingIdealSize.getHeight();