Lines 322-328
Link Here
|
322 |
// move up the east side |
322 |
// move up the east side |
323 |
do { |
323 |
do { |
324 |
recommendedLocation.y -= borderItemBounds.height |
324 |
recommendedLocation.y -= borderItemBounds.height |
325 |
- vertical_gap; |
325 |
+ vertical_gap; |
326 |
} while (conflicts(recommendedLocation, borderItem)); |
326 |
} while (conflicts(recommendedLocation, borderItem)); |
327 |
if (recommendedLocation.y < getParentBorder().getTopRight().y) { |
327 |
if (recommendedLocation.y < getParentBorder().getTopRight().y) { |
328 |
// east is full, try north. |
328 |
// east is full, try north. |
Lines 332-338
Link Here
|
332 |
} else { // NORTH |
332 |
} else { // NORTH |
333 |
do { |
333 |
do { |
334 |
recommendedLocation.x -= borderItemBounds.width |
334 |
recommendedLocation.x -= borderItemBounds.width |
335 |
- horizontal_gap; |
335 |
+ horizontal_gap; |
336 |
} while (conflicts(recommendedLocation, borderItem)); |
336 |
} while (conflicts(recommendedLocation, borderItem)); |
337 |
if (recommendedLocation.x < getParentBorder().getTopLeft().x) { |
337 |
if (recommendedLocation.x < getParentBorder().getTopLeft().x) { |
338 |
return locateOnBorder(recommendedLocation, |
338 |
return locateOnBorder(recommendedLocation, |