Shoes uses Slots made from Stacks and Flows for layout control which results in a liquid css like behavior. Loosely speaking, Flows position visible objects dynamically (as the window is resized) from left to right wrapping down the page if there is insufficient space to be displayed without clipping. When vertical space runs out a vertical scroll bar is displayed within the window being redrawn.My Problem
The vertical scroll bar appears inside the window area which would be ok if the returned window width was reduced by the width of the scroll bar. Unfortunately the visible width is not reduced which results in the scroll bar covering parts of displayed elements.
I am a GTK+2 noob. The relevant ruby calls are:-
swin = Gtk::ScrolledWindow.new
swin.set_size_request args[:width], args[:height]
swin.set_policy Gtk::POLICY_NEVER, Gtk::POLICY_AUTOMATIC
swin.vadjustment.step_increment = 10
layout = Gtk::Layout.new
I would be able to achieive what I need if I could test if the vertical scroll bar was visible or not during a resize event.
Any ideas ?