Hi all,
I am a bit puzzled about the behaviour of width/height inside a stack. The
manual says:
width() ยป a number
The horizontal size of the slot in pixels.
Where I understand the slot to be the current stack. The following trivial
example shows that this is not the case:
Shoes.app do
stack :width => 100 do
para "Width inside the stack: #{width}"
end
para "Width outside the stack: #{width}"
end
Is this expected behaviour?
I know I could use style[:width], but then I'd have to handle the special
cases such as width is a percentage of a float. Besides I would find the
other behaviour more intuitive and helpfull :)
I am using shoes2 on linux.
Cheers, Edwin