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 675076 - Login box grows a few pixels when selecting different users
Login box grows a few pixels when selecting different users
Status: RESOLVED FIXED
Product: gnome-shell
Classification: Core
Component: login-screen
3.4.x
Other Linux
: Normal normal
: ---
Assigned To: Ray Strode [halfline]
gnome-shell-maint
: 675407 675831 676792 678219 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2012-04-29 14:11 UTC by maxx
Modified: 2012-07-18 21:58 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
loginDialog: Scale focusBin instead of resizing it (2.50 KB, patch)
2012-07-13 15:18 UTC, Florian Müllner
committed Details | Review
loginDialog: Scale focusBin instead of resizing it (3.71 KB, patch)
2012-07-16 10:31 UTC, Florian Müllner
none Details | Review

Description maxx 2012-04-29 14:11:01 UTC
When the login box presents more than one user it is possible to use the up/down arrows keys to select between them.

However every time a new user is selected the login box grows horizontally by a few pixels.

This is with gdm-3.4.1.
Comment 1 Matthias Clasen 2012-05-04 03:51:57 UTC
*** Bug 675407 has been marked as a duplicate of this bug. ***
Comment 2 Ray Strode [halfline] 2012-05-10 18:28:04 UTC
*** Bug 675831 has been marked as a duplicate of this bug. ***
Comment 3 Ray Strode [halfline] 2012-05-25 14:28:57 UTC
*** Bug 676792 has been marked as a duplicate of this bug. ***
Comment 4 Matthias Clasen 2012-06-20 00:29:04 UTC
*** Bug 678219 has been marked as a duplicate of this bug. ***
Comment 5 Florian Müllner 2012-07-13 15:18:21 UTC
Created attachment 218736 [details] [review]
loginDialog: Scale focusBin instead of resizing it

When setting an explicit size as we do currently, rounding errors
(for instance introduced by padding not specified in pixels) may
affect the parent's size allocation, e.g. making it shrink or grow
each time the size is reset.
Rather than taking care of possible rounding errors, set up focusBin
to take up the available width and use scaling for the animation.
Comment 6 Matthias Clasen 2012-07-13 17:59:06 UTC
Works fine in my testing, thanks
Comment 7 Jasper St. Pierre (not reading bugmail) 2012-07-13 19:52:26 UTC
Review of attachment 218736 [details] [review]:

This will mean that things like borders and rounded radiuses will get squashed and be at the wrong aspect ratio. No.
Comment 8 Florian Müllner 2012-07-14 21:31:15 UTC
(In reply to comment #7)
> This will mean that things like borders and rounded radiuses will get squashed
> and be at the wrong aspect ratio. No.

Border-radius, seriously? We are talking about a horizontal line with a height of 2px (yes, I'm making some assumptions, but so does the existing code with regard to which actors have padding and which don't)
Comment 9 Jasper St. Pierre (not reading bugmail) 2012-07-14 21:41:50 UTC
(In reply to comment #8)
> Border-radius, seriously? We are talking about a horizontal line with a height
> of 2px (yes, I'm making some assumptions, but so does the existing code with
> regard to which actors have padding and which don't)

"Everybody else makes broken assumptions, so I should do it too!"
Comment 10 Jasper St. Pierre (not reading bugmail) 2012-07-14 21:42:08 UTC
Review of attachment 218736 [details] [review]:

OK.
Comment 11 Florian Müllner 2012-07-16 10:31:01 UTC
Created attachment 218901 [details] [review]
loginDialog: Scale focusBin instead of resizing it

(In reply to comment #9)
> "Everybody else makes broken assumptions, so I should do it too!"

I would define "broken" as "wrong/invalid", which is not the case for either assumption; anyway, here's an alternative patch which adds complexity for additional (probably never needed) style flexibility ...
Comment 12 Matthias Clasen 2012-07-18 13:51:38 UTC
So, can we get this landed ?
Comment 13 Florian Müllner 2012-07-18 14:03:42 UTC
Comment on attachment 218736 [details] [review]
loginDialog: Scale focusBin instead of resizing it

(oops, didn't mean to mark this one obsolete)
Comment 14 Jasper St. Pierre (not reading bugmail) 2012-07-18 16:28:23 UTC
Review of attachment 218736 [details] [review]:

You might not have noticed that I marked the simpler one ACN.
Comment 15 Florian Müllner 2012-07-18 21:58:42 UTC
Attachment 218736 [details] pushed as f46a165 - loginDialog: Scale focusBin instead of resizing it

Yes, but you were implying that the patch was a bad hack, which is why I wrote an alternative. Let's go with the simple approach then.