TankOs/SFGUI — Issue #43: ScrolledWindow design flaws
Author: TankOs
Created: 2011-10-17 09:31:49+00:00
State: open
Labels: @Confirmed, Widgets

While rewriting the coordinate stuff from absolute positioning to relative positioning, I discovered a design flaw in ScrolledWindow.

The widget may display two scrollbars (hor. and vert.) if content overshoots. However ScrolledWindow is an sfg::Bin and can there only hold one single child widget. That's probably the reason why the scrollbars aren't actually added to sfg::ScrolledWindow as childs.

However they should be added, so that automatic event handling and rendering takes place instead of doing it manually. The problem here is that with changes like relative positioning, every widget with special behaviour needs to be adjusted by hand.

Check the "relative" branch to see it in action.