Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Ruby Shoes - Scrollbars in Subpane window

Tags:

ruby

shoes

I can't seem to get a scrollbar to work in an inner stack/flow. Does anyone know how to?

like image 749
user35852 Avatar asked Nov 09 '08 00:11

user35852


2 Answers

Just fix height and add ":scroll => true" parameter:

Shoes.app(:title => "Scrolll!" ) do
  flow :margin => 10 do
    stack :width => "150px", :height => "200px", :scroll => true do
      para  "all you need is love",  "all you need is love", "all you need is love", "all you need is love", "all you need is love", "all you need is love", "all you need is love", "all you need is love", "all you need is love", "all you need is love",
    end
  end
end
like image 154
Sergei Silnov Avatar answered Nov 14 '22 08:11

Sergei Silnov


You can use a <div> tag, and then have CSS as such:

#my_div {
 width: [some_width]px;
 height: [some_height]px;
 overflow: auto;
}
like image 29
user45200 Avatar answered Nov 14 '22 08:11

user45200