So, I've found a small but really annoying issue with widgets.
Let's consider the following shoes app :
Shoes.app :title => "Hubbub", :resizable => true do
flow do
stack :width => 0.5 do
background red
para "Test"
end
stack :width => 0.5 do
background green
para " 1 2 "
end
end
end
This works as expected and produces a two-column layout, as described
in NKS (p. 13)
But when porting the flow to a widget and using it, let's say :
class ColumnView < Widget
def initialize
flow do
stack :width => 0.5 do
background red
para "Test"
end
stack :width => 0.5 do
background green
para " 1 2 "
end
end
end
end
Shoes.app :title => "Hubbub", :resizable => true do
columnview
end
The green background got painted over the red one, hiding the para with "Test"
I think this I spotted a bug :-)