lib/cyberarm_engine/ui/elements/container.rb in cyberarm_engine-0.24.3 vs lib/cyberarm_engine/ui/elements/container.rb in cyberarm_engine-0.24.4

- old
+ new

@@ -149,14 +149,10 @@ @last_scroll_position.x = @scroll_position.x @last_scroll_position.y = @scroll_position.y end def recalculate - return if @in_recalculate - - @in_recalculate = true - @current_position = Vector.new(@style.margin_left + @style.padding_left, @style.margin_top + @style.padding_top) return unless visible? Stats.frame&.increment(:gui_recalculations) @@ -241,11 +237,9 @@ end recalculate_if_size_changed # puts "TOOK: #{Gosu.milliseconds - s}ms to recalculate #{self.class}:0x#{self.object_id.to_s(16)}" - - @in_recalculate = false end def layout raise "Not overridden" end