Maybe final container fill mode fix?

This commit is contained in:
2022-04-04 13:26:40 -05:00
parent 08d068f156
commit f2ea0d9942

View File

@@ -139,8 +139,8 @@ module CyberarmEngine
space_available_width = ((@parent.content_width - (@parent.children.reject { |c| c.style.fill }).map(&:outer_width).sum) / fill_siblings).round
space_available_height = ((@parent.content_height - (@parent.children.reject { |c| c.style.fill }).map(&:outer_height).sum) / fill_siblings).round
@width = space_available_width - inner_width if @parent.is_a?(Flow)
@height = space_available_height - inner_height if @parent.is_a?(Stack)
@width = space_available_width - noncontent_width if @parent.is_a?(Flow)
@height = space_available_height - noncontent_height if @parent.is_a?(Stack)
# pp ["siblings: #{fill_siblings}", "parent is #{@parent.inspect}", [@parent.content_width, space_available_width, @width, outer_width], [@parent.content_height, space_available_height, @height, outer_height]]
end