I can't seem to get a scrollbar to work in an inner stack/flow. Does anyone know how to?
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
You can use a <div>
tag, and then have CSS as such:
#my_div {
width: [some_width]px;
height: [some_height]px;
overflow: auto;
}
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With