lib/cyberarm_engine/ui/elements/image.rb in cyberarm_engine-0.24.2 vs lib/cyberarm_engine/ui/elements/image.rb in cyberarm_engine-0.24.3
- old
+ new
@@ -25,10 +25,10 @@
@block.call(self) if @block
:handled
end
- def recalculate
+ def layout
_width = dimensional_size(@style.width, :width)
_height = dimensional_size(@style.height, :height)
if _width && _height
@scale_x = _width.to_f / @image.width