lib/cyberarm_engine/ui/elements/container.rb in cyberarm_engine-0.24.0 vs lib/cyberarm_engine/ui/elements/container.rb in cyberarm_engine-0.24.1

- old
+ new

@@ -234,9 +234,14 @@ # Fixes resized container scrolled past bottom self.scroll_top = -@scroll_position.y @scroll_target_position.y = @scroll_position.y + # Fixes resized container that is scrolled down from being stuck overscrolled when resized + if scroll_height < height + @scroll_target_position.y = 0 + end + # NOTE: Experiment for removing need to explicitly call gui_state#recalculate at least 3 times for layout to layout... if old_width != @width || old_height != @height if @parent root.gui_state.request_recalculate_for(@parent) else