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 685449 - Non-uniform borders on GtkScrolledWindow break children allocation
Non-uniform borders on GtkScrolledWindow break children allocation
Status: RESOLVED FIXED
Product: gtk+
Classification: Platform
Component: Widget: Other
3.6.x
Other Linux
: Normal normal
: ---
Assigned To: gtk-bugs
gtk-bugs
Depends on:
Blocks:
 
 
Reported: 2012-10-03 22:32 UTC by Cosimo Cecchi
Modified: 2012-10-04 13:21 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
10px uniform border (48.65 KB, image/png)
2012-10-03 22:32 UTC, Cosimo Cecchi
  Details
10px top+right border (51.33 KB, image/png)
2012-10-03 22:32 UTC, Cosimo Cecchi
  Details
scrolledwindow: fix wrong allocation of padding and borders (5.51 KB, patch)
2012-10-04 05:06 UTC, Cosimo Cecchi
committed Details | Review

Description Cosimo Cecchi 2012-10-03 22:32:07 UTC
When a non-uniform border is set on a GtkScrolledWindow, the allocation of the child and of the scrollbars is wrong; scrollbars are not anymore in the bevel, and the child allocation also is cropped in the wrong way.

See screenshots.
Comment 1 Cosimo Cecchi 2012-10-03 22:32:23 UTC
Created attachment 225728 [details]
10px uniform border
Comment 2 Cosimo Cecchi 2012-10-03 22:32:41 UTC
Created attachment 225729 [details]
10px top+right border
Comment 3 Cosimo Cecchi 2012-10-03 22:33:33 UTC
(In reply to comment #2)
> Created an attachment (id=225729) [details]
> 10px top+left border

Erm, top+right, not top+left.
Comment 4 Cosimo Cecchi 2012-10-04 05:06:16 UTC
Created attachment 225771 [details] [review]
scrolledwindow: fix wrong allocation of padding and borders

When positioning the scrollbar we were doing several miscalculations
when accounting for CSS paddings and borders. This also fixes a number
of problems with RTL and when scrollbars-within-bevel is FALSE.
Comment 5 Cosimo Cecchi 2012-10-04 13:21:42 UTC
Attachment 225771 [details] pushed as 1a1361c - scrolledwindow: fix wrong allocation of padding and borders

Pushed to master