mirror of
https://github.com/cyberarm/cyberarm_engine.git
synced 2025-12-15 04:32:35 +00:00
Fixed Image element causing clipping issues to sibling elements due to not properly flooring @width/@height
This commit is contained in:
@@ -45,8 +45,8 @@ module CyberarmEngine
|
||||
@scale_y = 1
|
||||
end
|
||||
|
||||
@width = _width || @image.width.floor * @scale_x
|
||||
@height = _height || @image.height.floor * @scale_y
|
||||
@width = _width || (@image.width * @scale_x).floor
|
||||
@height = _height || (@image.height * @scale_y).floor
|
||||
|
||||
update_background
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user