File tree 1 file changed +6
-6
lines changed
1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -228,16 +228,16 @@ function setBoundingBox(scope, item) {
228
228
bounding_box . width = item . width ( ) ;
229
229
} else {
230
230
//compare and change if item is a better fit for bounding box edges
231
- if ( item_top < bounding_box . top ) { bounding_box . top = item_top } ;
232
- if ( item_left < bounding_box . left ) { bounding_box . left = item_left } ;
233
- if ( item_bottom > bounding_box . bottom ) { bounding_box . bottom = item_bottom } ;
234
- if ( item_right > bounding_box . right ) { bounding_box . right = item_right } ;
231
+ if ( item_top < bounding_box . top ) { bounding_box . top = item_top ; }
232
+ if ( item_left < bounding_box . left ) { bounding_box . left = item_left ; }
233
+ if ( item_bottom > bounding_box . bottom ) { bounding_box . bottom = item_bottom ; }
234
+ if ( item_right > bounding_box . right ) { bounding_box . right = item_right ; }
235
235
236
236
// compare height and width of bounding box (take the largest number)
237
237
var height = bounding_box . bottom - bounding_box . top ;
238
238
var width = bounding_box . right - bounding_box . left ;
239
- if ( height > bounding_box . height ) { bounding_box . height = height } ;
240
- if ( width > bounding_box . width ) { bounding_box . width = width } ;
239
+ if ( height > bounding_box . height ) { bounding_box . height = height ; }
240
+ if ( width > bounding_box . width ) { bounding_box . width = width ; }
241
241
}
242
242
243
243
// Get list of current selected ids (so we can ignore their snapping x coordinates)
You can’t perform that action at this time.
0 commit comments