5

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

user35852
  • 51
  • 2
  • shoes appears to be a ruby ui toolkit. – sblundy Nov 09 '08 at 01:25
  • It is. Its mad scientist, _why, is a real nice guy and he frequents the Ruby List often and answers questions. I don't know if he hangs out on this site, though, so you may want to try http://www.ruby-forum.com/forum/4 – J Cooper Dec 10 '08 at 04:30

3 Answers3

5

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
Peter Olson
  • 139,199
  • 49
  • 202
  • 242
Sergei Silnov
  • 66
  • 1
  • 3
1

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

#my_div {
 width: [some_width]px;
 height: [some_height]px;
 overflow: auto;
}
Jason Plank
  • 2,336
  • 5
  • 31
  • 40
user45200
  • 3
  • 1
-1

I'm not sure what exactly you mean by "an inner stack/flow", but we use iframes for our subpane windows which has a scrolling attribute you can set. Otherwise you can use a javascript framework like YUI to get subpane windows that can allow scrolling capabilities.

Ben5e
  • 721
  • 2
  • 9
  • 15