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 728756 - Scrollbar is overriding area behind within popover
Scrollbar is overriding area behind within popover
Status: RESOLVED FIXED
Product: polari
Classification: Applications
Component: general
3.12.x
Other Linux
: Normal normal
: ---
Assigned To: Polari maintainers
Polari maintainers
Depends on:
Blocks:
 
 
Reported: 2014-04-22 21:55 UTC by Daniel Korostil
Modified: 2017-10-27 14:33 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Popover (15.23 KB, image/png)
2014-04-22 21:55 UTC, Daniel Korostil
  Details
patch to increase right margin on username box (1.25 KB, patch)
2017-02-10 20:36 UTC, Zandr Martin
none Details | Review
userList: Increase right margin of row headers (1.23 KB, patch)
2017-10-27 14:32 UTC, Florian Müllner
committed Details | Review

Description Daniel Korostil 2014-04-22 21:55:34 UTC
Created attachment 274912 [details]
Popover

Not sure if it's a GTK+ popover bug itself. Please see attached screenshot.
Comment 1 Florian Müllner 2014-04-24 13:30:46 UTC
I'm not seeing this here. Are you using Ubuntu for a chance? As far as I know, they still patch GTK+ for their "overlay scrollbars", in which case I guess that's expected behavior ...
Comment 2 Daniel Korostil 2014-04-24 21:39:16 UTC
Archlinux. It doesn't look patched:
https://projects.archlinux.org/svntogit/packages.git/tree/trunk/PKGBUILD?h=packages/gtk3

I'll try some VMs later on.
Comment 3 Florian Müllner 2014-04-25 09:25:06 UTC
Nah, Arch generally follows upstream closely, so this should indeed be our bug. However I'm still not reproducing the issue (neither with the normal nor the dark theme variant) - what locale are you using?
Comment 4 Daniel Korostil 2014-04-25 17:31:30 UTC
Yeah, you are right. It's a locale-related bug. It works fine with C locale.

LANG=uk_UA.UTF-8 polari
Comment 5 Daniel Korostil 2014-05-17 16:04:05 UTC
Redirected to gtk+. Re-reproduced with 3.12.2.
Comment 6 Matthias Clasen 2015-08-01 13:18:02 UTC
I'm not sure there's a bug here, really. With overlay scrollbars this is just what happens when you put your controls too close to the edge. Not sure it is much of a problem in the polari user list case, since the entire row acts as the toggle. The arrow is just the indicator.

Moving this back to polari.
Comment 7 Bastian Ilsø 2016-11-29 07:21:24 UTC
The newcomer keyword is added to this bug. To clarify what is needed here, probably this bug can probably be fixed by adding spacing to the right of the arrow in the user list.
Comment 8 Zandr Martin 2017-02-10 20:36:04 UTC
Created attachment 345482 [details] [review]
patch to increase right margin on username box

I am new to GNOME contribution so please let me know if I'm not doing this correctly. This patch should prevent the overlay scrollbars from laying on top of the arrow in the username boxes.
Comment 9 Florian Müllner 2017-02-17 17:15:14 UTC
Review of attachment 345482 [details] [review]:

Thanks for the patch! As noted below, unfortunately the patch will not work as intended in all cases, so marking as needs-work.

As an additional nit:
Commit messages should follow the form outlined in https://chris.beams.io/posts/git-commit/#seven-rules, so something like:

userList: Increase right margin in userlist box

When overlay scrollbars are used, they'll currently cover parts of
the contents when expanded. Increase the margin to avoid this.

::: src/userList.js
@@ +470,3 @@
         this.add(vbox);
 
+        let hbox = new Gtk.Box({ margin_right: 12,

This assumes the scroll bar is located on the right, which is not the case in locales with a text direction from right-to-left (as Arabic or Hebrew).
Comment 10 Florian Müllner 2017-10-27 14:32:04 UTC
Created attachment 362415 [details] [review]
userList: Increase right margin of row headers

Updated patch to use margin-end instead of margin-right (to account for both left-to-right and right-to-left locales) and slightly changed the commit message.
Comment 11 Florian Müllner 2017-10-27 14:33:25 UTC
Attachment 362415 [details] pushed as 1f11373 - userList: Increase right margin of row headers