1
0
Fork 0
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:
Julian Storer 2010-02-09 18:39:52 +00:00
parent bc41a46dab
commit ba572201dd
17 changed files with 234 additions and 260 deletions

View file

@ -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);