After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 692456 - Add a way for StScrollView to reserve scrollbars allocations
Add a way for StScrollView to reserve scrollbars allocations
Status: RESOLVED DUPLICATE of bug 686881
Product: gnome-shell
Classification: Core
Component: general
unspecified
Other All
: Normal normal
: ---
Assigned To: gnome-shell-maint
gnome-shell-maint
Depends on:
Blocks:
 
 
Reported: 2013-01-24 15:16 UTC by Cosimo Cecchi
Modified: 2013-01-24 16:29 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
scroll-view: add reserve-scrollbars-allocation property (5.65 KB, patch)
2013-01-24 15:16 UTC, Cosimo Cecchi
none Details | Review
searchDisplay: reserve scrollbars allocation (1.11 KB, patch)
2013-01-24 15:16 UTC, Cosimo Cecchi
none Details | Review

Description Cosimo Cecchi 2013-01-24 15:16:31 UTC
If a scrolled view has an automatic policy for a scrollbar, it can appear and disappear at any time, according to the content.
Showing the scrollbar has the effect to change the allocation of the scrolled part of the view; this is especially noticeable for vertically scrolled views with a centered layout (like our search results), since the scrollbar will make everything shift horizontally.
One way to fix this generically is to always shrink the scrolled content allocation as if the scrollbar was visible, even if it's not.
Not sure we should do this unconditionally, so I made it a property that defaults to FALSE.
Comment 1 Cosimo Cecchi 2013-01-24 15:16:33 UTC
Created attachment 234310 [details] [review]
scroll-view: add reserve-scrollbars-allocation property

This is useful to avoid reflowing the layout when there's a
center-aligned block.
Comment 2 Cosimo Cecchi 2013-01-24 15:16:36 UTC
Created attachment 234311 [details] [review]
searchDisplay: reserve scrollbars allocation
Comment 3 Florian Müllner 2013-01-24 16:20:07 UTC
Also see bug 686881.
Comment 4 Cosimo Cecchi 2013-01-24 16:29:51 UTC
Heh indeed, that's the same bug. Closing as a duplicate.

*** This bug has been marked as a duplicate of bug 686881 ***