-
Tristan Van Berkom authored
This patch makes the scrolled window reconsider allocating the child the full width or height (depending on the child's request mode) without a scrollbar. For instance when the child is height-for-width; the child will first be tested if the content's height for full allocated width (without a vscrollbar) will allow the contents height for that width to fit the allocated height. Patch is a simplified version of code inspected in st-scroll-view.c. Note that this patch assumes children will begin to scroll only after reaching their minimum size; adding a property to the future GtkScrollableIface to decide whether to scroll-to-minimum or scroll-to-natural will effect this code (it should then reconsider whether the child will scroll below the natural size instead of the minimum). Patch addresses bug 629778.
e85dad38