ashbb / green_shoes

Green Shoes is one of the colorful Shoes written in pure Ruby.
Other
204 stars 37 forks source link

scoll slot #53

Closed glurp closed 12 years ago

glurp commented 12 years ago

Hello Ashbb,

in this code , show only the button if :scroll==true but scroll bar is there if no options !

require 'green_shoes' 
 Shoes.app do
    stack :scroll=> true do
        100.times { para "do scroll=false for scroll..." }
        button "a button"
    end
end

with green_shoes-1.0.282.gem

by, Regis

ashbb commented 12 years ago

Hi Regis,

hahaha. Yeah, scrolled slot is just a trial on Green Shoes. So, there are many restrictions. Look at manual: http://ashbb.github.com/green_shoes/Styles.html#:scroll

And try out the following:

require 'green_shoes'
Shoes.app do
  stack :scroll=> true do
    100.times { para "do scroll=false for scroll..." }
    button "a button"
    flush
  end
end

Yes, you need to write flush explicitly. ;-)

ashbb