File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -41,7 +41,8 @@ public class Akira.Lib.Components.Size : Component {
4141
4242 if (locked && ! auto_resize) {
4343 auto_resize = true ;
44- height = Utils . AffineTransform . fix_size (value / ratio);
44+ var locked_height = Utils . AffineTransform . fix_size (value / ratio);
45+ height = item is Items . CanvasImage && locked_height < 1 ? 1 : locked_height;
4546 auto_resize = false ;
4647 }
4748
@@ -70,7 +71,8 @@ public class Akira.Lib.Components.Size : Component {
7071
7172 if (locked && ! auto_resize) {
7273 auto_resize = true ;
73- width = Utils . AffineTransform . fix_size (value * ratio);
74+ var locked_width = Utils . AffineTransform . fix_size (value / ratio);
75+ height = item is Items . CanvasImage && locked_width < 1 ? 1 : locked_width;
7476 auto_resize = false ;
7577 }
7678
You can’t perform that action at this time.
0 commit comments