Hey guys- I have a really noob question. Check out simple-calc.rb: http://github.com/shoes/shoes/blob/master/samples/simple-calc.rb Something confuses me about this. > Shoes.app :height => 250, :width => 200, :resizable => false do and > flow :width => 218, :margin => 4 do Don't these seem to contradict one another? the flow is larger than the window! Is this known behavior? Does it just ignore it? Why's it like this?
Hi Steve and folks,
> Don't these seem to contradict one another?
No. You don't have to be concerned about that.
Slot size (width/height) is just a view, not to limit sub-elements' sizes.
Although, in this case, there should be no reason to use `218` as the flow
width.
If you want to use minimum width, `192` is enough.
This means `(46 + 2) * 4`. Button needs 1pix buffer around.
ashbb
Depends on whether the window on screen is 200 or 218. I increased the flow to 418 to test. Looks like a simple user bug in the sample-calc.rb script that's never been stress tested. On Tue, 2010-08-24 at 19:33 -0400, Steve Klabnik wrote: > Hey guys- > > I have a really noob question. Check out simple-calc.rb: > http://github.com/shoes/shoes/blob/master/samples/simple-calc.rb > > Something confuses me about this. > > > Shoes.app :height => 250, :width => 200, :resizable => false do > > and > > > > flow :width => 218, :margin => 4 do > > Don't these seem to contradict one another? the flow is larger than > the window! Is this known behavior? Does it just ignore it? Why's it > like this?
I remember reading something related to this about the box model of Shoes that _why wrote… I can't seem to find it, nor do I remember the details, unfortunately. On Tue, Aug 24, 2010 at 6:53 PM, Cecil Coupe <ccoupe@cableone.net> wrote: > Depends on whether the window on screen is 200 or 218. > I increased the flow to 418 to test. Looks like a simple user bug in the > sample-calc.rb script that's never been stress tested. > > On Tue, 2010-08-24 at 19:33 -0400, Steve Klabnik wrote: > > Hey guys- > > > > I have a really noob question. Check out simple-calc.rb: > > http://github.com/shoes/shoes/blob/master/samples/simple-calc.rb > > > > Something confuses me about this. > > > > > Shoes.app :height => 250, :width => 200, :resizable => false do > > > > and > > > > > > > flow :width => 218, :margin => 4 do > > > > Don't these seem to contradict one another? the flow is larger than > > the window! Is this known behavior? Does it just ignore it? Why's it > > like this? > > > -- ~devyn