You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The width returned for a group take into the value the padding parameter.
Steps :
Use this fiddle and set the padding to "5", select an OBJECT. The width returned in the console is 150px.
Increase the padding value, and redo the test, the width is still 150px.
Try the same test but select a GROUP. the width returned will change depending of the padding value defined in the parameter (460px is returned when the padding is 5px, and 550px is returned when you set the padding at 50px).
Thank you for the 1.7.0 release, now the padding is no more added to the width value of the object.
While testing, I found something strange when the objects have a scale value.
If i scale up, an image and a rect object, if i made a selection with both objects, the blue control have more space than the image object.
It seems to me there is by default 1px beetween the blue frame and the object, but in the case of "rect object" the space beetween the object and the frame seems to be also scaledUp.
Not really sure to explain correctly myself, here is a screenshot (i put in red the diff), you can see the gap beetween the blue frame and the rect object, but not in the case of the image object.
Here is the fiddle. Select both object to reproduce.
Is this normal or possibly a bug ? should i open a new ticket ?
Hi,
The width returned for a group take into the value the padding parameter.
Steps :
Use this fiddle and set the padding to "5", select an OBJECT. The width returned in the console is 150px.
Increase the padding value, and redo the test, the width is still 150px.
Try the same test but select a GROUP. the width returned will change depending of the padding value defined in the parameter (460px is returned when the padding is 5px, and 550px is returned when you set the padding at 50px).
http://jsfiddle.net/yvo89upg/1/
I suppose the padding shouldn't influence the group width value (to have the same behaviour as the Object class).
The text was updated successfully, but these errors were encountered: