lib/cyberarm_engine/ui/element.rb in cyberarm_engine-0.10.2 vs lib/cyberarm_engine/ui/element.rb in cyberarm_engine-0.11.0

- old
+ new

@@ -30,10 +30,13 @@ @fixed_y = @y if @y != 0 @style.width = default(:width) || nil @style.height = default(:height) || nil + @style.background_canvas = Background.new + @style.border_canvas = BorderCanvas.new(element: self) + stylize default_events end @@ -41,12 +44,9 @@ set_border_thickness(@style.border_thickness) set_padding(@style.padding) set_margin(@style.margin) - - @style.background_canvas = Background.new - @style.border_canvas = BorderCanvas.new(element: self) set_background(@style.background) set_border_color(@style.border_color) end \ No newline at end of file