mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-02-04 03:40:07 +00:00
Changed the ComponentBoundsConstrainer to use Rectangles in its method parameters. Fixed some window repositioning problems with multiple monitors.
This commit is contained in:
parent
bc41a46dab
commit
ba572201dd
17 changed files with 234 additions and 260 deletions
|
|
@ -78,7 +78,7 @@ void ComponentDragger::dragComponent (Component* const componentToDrag, const Mo
|
|||
y += e.getDistanceFromDragStartY();
|
||||
|
||||
if (constrainer != 0)
|
||||
constrainer->setBoundsForComponent (componentToDrag, x, y, w, h,
|
||||
constrainer->setBoundsForComponent (componentToDrag, Rectangle<int> (x, y, w, h),
|
||||
false, false, false, false);
|
||||
else
|
||||
componentToDrag->setBounds (x, y, w, h);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue