We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c7dc41d commit 01951a0Copy full SHA for 01951a0
1 file changed
src/ui/grapheditorcomponent.hpp
@@ -245,14 +245,13 @@ class GraphEditor : public juce::Component
245
{
246
g.fillAll (findColour (Style::widgetBackgroundColorId).darker());
247
}
248
+
249
void resized() override
250
251
auto r = getLocalBounds();
252
_viewport.setBounds (r);
- if (_editor.getWidth() < _viewport.getWidth() || _editor.getHeight() < _viewport.getHeight())
253
- {
254
- _editor.setBounds (_viewport.getBounds());
255
- }
+ _editor.setSize (jmax (_editor.getWidth(), _viewport.getWidth()),
+ jmax (_editor.getHeight(), _viewport.getHeight()));
256
257
258
juce::Viewport& viewport() { return _viewport; }
0 commit comments