diff options
| author | Jules Laplace <jules@okfoc.us> | 2014-08-18 16:31:27 -0400 |
|---|---|---|
| committer | Jules Laplace <jules@okfoc.us> | 2014-08-18 16:31:27 -0400 |
| commit | 0ce017601ea3393f6ea1d0cab105737a6e460138 (patch) | |
| tree | a317f39b00400a5f9018482bb993f344d09effc7 | |
| parent | a8ed33d8313b093f589a5483cb00c7163b7b8dc3 (diff) | |
etc
| -rw-r--r-- | public/assets/javascripts/rectangles/models/surface.js | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/public/assets/javascripts/rectangles/models/surface.js b/public/assets/javascripts/rectangles/models/surface.js index 9b82e4e..0e0926f 100644 --- a/public/assets/javascripts/rectangles/models/surface.js +++ b/public/assets/javascripts/rectangles/models/surface.js @@ -193,7 +193,13 @@ else if (bounds.width() < width) { intersection = bounds.y.intersection(face.y) if (intersection.length() < height) { - break + // here, since the element is tall enough, we can clobber the bounds completely + bounds.y.a = face.y.a + bounds.y.b = face.y.b + bounds.x.a = face.x.a + bounds.x.b = face.x.b + bounds.first = bounds.last = i + continue } else { bounds.y.a = intersection.a |
