Skip to content

Commit

Permalink
Refactor resize limits and remove debug settings in PluginEditor.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
Lunix-420 committed Oct 20, 2024
1 parent 86410f6 commit 2870f47
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/app/PluginEditor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,9 @@ PluginEditor::PluginEditor(PluginProcessor& p)
addAndMakeVisible(disfluxPanel);

double ratio = baseWidth / baseHeight;
setResizeLimits(800, 140, 4000, 4000 / ratio);
setResizeLimits(baseWidth, baseWidth / ratio, 4000, 4000 / ratio);
getConstrainer()->setFixedAspectRatio(ratio);
setSize(800.0, 800.0 / ratio);
setSize(baseWidth, baseWidth / ratio);
}
//==============================================================================
PluginEditor::~PluginEditor() {}
Expand Down Expand Up @@ -97,12 +97,12 @@ PluginEditor::resized()
paintEntireComponent(graphics, false);
}

// We remove all children to improve resize performance
removeAllChildren();

// We go into resizing mode
startTimer(100);
isResizing = true;

// We remove all children to improve resize performance
removeAllChildren();
}
void
PluginEditor::parentSizeChanged()
Expand Down

0 comments on commit 2870f47

Please sign in to comment.