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
In some special circumstances, when position was passed in constructor
and when position key was before size key, bounds were wrongly
calculated.
This ensure that when size is set, even the first time, bounds are
properly recalculated.
Closespaperjs#1686
@nikkwong, thank you for the report.
The bug was actually linked to the fact that position was set before size, resulting in invalid bounds being cached. #1708 will fix it.
About your second statement, yes, I think that bounds are supposed to be readonly and we are working on improving the readonly states in the documentation along with the typescript documentation improvement. @lehni, can you confirm that every variant of bounds (bounds, strokeBounds, ...) should be marked as readonly ? If yes, I can make a PR to fix the documentation.
In some special circumstances, when position was passed in constructor
and when position key was before size key, bounds were wrongly
calculated.
This ensure that when size is set, even the first time, bounds are
properly recalculated.
Closes#1686
Sketch
The text was updated successfully, but these errors were encountered: