Text block jumps when changing normal to huge font size.
Text block should not change its position

N/A
_Do not alter or remove anything below. The following sections will be managed by moderators only._
Related to #3444
The issue here is that when the text size is changed to "huge" then the block is resized, it's resized not considering the rotation.
We should adjust the logic so that if block size is increased, the rotation angle should be considered as well and the positionTop and positionLeft values adjusted accordingly.
The logic needs updating within the maybeUpdateBlockDimensions function.
The resizable-box component is already doing similar calculations, the relevant helpers are in the helpers.js file of that component. We can reuse the helpers and move the shared ones to the helper's folder instead, where applicable.
Implementation Brief added, ready for review.
Looks fine to me.
We should adjust the logic so that if block size is increased, the rotation angle should be considered as well and the positionTop and positionLeft values adjusted accordingly.
Can we make sure to use the same logic already present in resizable to avoid duplicating? Is it helper-material?
Can we make sure to use the same logic already present in resizable to avoid duplicating? Is it helper-material?
Should be. Looks like resizable has its own helpers file where a helper could be pulled out to general helpers if it can be shared.
Will update the brief, thanks!
Verified in QA
Most helpful comment
Verified in QA