Bug 83014 - ScrollPaneSolver#solve never uses the available width as hints
Summary: ScrollPaneSolver#solve never uses the available width as hints
Status: NEW
Alias: None
Product: GEF
Classification: Tools
Component: GEF-Legacy GEF (MVC) (show other bugs)
Version: 3.0   Edit
Hardware: All All
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: gef-inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-01-17 14:48 EST by Pratik Shah CLA
Modified: 2011-01-05 17:42 EST (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Pratik Shah CLA 2005-01-17 14:48:48 EST
It always gets the preferred size assuming that scrollbars are present.  As a 
result, it's determination of whether scrollbars are needed or not can be 
incorrect.

Instead it should assume that the scroll bar visibility will not change for 
the current control, and later re-calculate the preferred size, if needed.
Comment 1 Randy Hudson CLA 2005-01-17 14:53:26 EST
The solver doesn't have the current visibility info.  It could be passed as 
additional params.

Another option is to be pessimistic and assume scrollbars are required, but if 
its close also check if they aren't needed.