mirror of
https://github.com/cyberarm/cyberarm_engine.git
synced 2025-12-16 13:12:34 +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
|
@scale_y = 1
|
||||||
end
|
end
|
||||||
|
|
||||||
@width = _width || @image.width.floor * @scale_x
|
@width = _width || (@image.width * @scale_x).floor
|
||||||
@height = _height || @image.height.floor * @scale_y
|
@height = _height || (@image.height * @scale_y).floor
|
||||||
|
|
||||||
update_background
|
update_background
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user