File gs-make-long-user-list-scrollable.patch of Package gnome-shell.2367

From 87363113dd90cdd512e4e279a4f54b35704e84c0 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Florian=20M=C3=BCllner?= <fmuellner@gnome.org>
Date: Fri, 10 Jul 2015 18:58:05 +0200
Subject: [PATCH] loginDialog: Limit user list to the available height

We currently will always allocate the user list's preferred size, so it
will grow indefinitely and never scroll; limit the height instead to
get the desired scrolling behavior when necessary.

https://bugzilla.gnome.org/show_bug.cgi?id=754525
---

diff --git a/js/gdm/loginDialog.js b/js/gdm/loginDialog.js
index c56651b..379e6e7 100644
--- a/js/gdm/loginDialog.js
+++ b/js/gdm/loginDialog.js
@@ -599,6 +599,9 @@ const LoginDialog = new Lang.Class({
        let centerX = dialogBox.x1 + (dialogBox.x2 - dialogBox.x1) / 2;
        let centerY = dialogBox.y1 + (dialogBox.y2 - dialogBox.y1) / 2;

+       natWidth = Math.min(natWidth, dialogBox.x2 - dialogBox.x1);
+       natHeight = Math.min(natHeight, dialogBox.y2 - dialogBox.y1);
+
        actorBox.x1 = centerX - natWidth / 2;
        actorBox.y1 = centerY - natHeight / 2;
        actorBox.x2 = actorBox.x1 + natWidth;
-- 
openSUSE Build Service is sponsored by