Fixed hidden Container elements not recalculating when becoming visible

This commit is contained in:
2024-03-05 14:16:07 -06:00
parent 0d70177de7
commit d2f757eb23

View File

@@ -151,10 +151,6 @@ module CyberarmEngine
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?
@@ -243,8 +239,6 @@ module CyberarmEngine
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