gdm: fix banner allocation computation
The code to figure how how much room that banner had was wrong. This commit fixes it. https://bugzilla.gnome.org/show_bug.cgi?id=751517
This commit is contained in:
parent
eafb8c8e38
commit
0003760fd9
@ -584,7 +584,14 @@ const LoginDialog = new Lang.Class({
|
|||||||
// try a different layout, or if we have what extra space we
|
// try a different layout, or if we have what extra space we
|
||||||
// can hand out
|
// can hand out
|
||||||
if (bannerAllocation) {
|
if (bannerAllocation) {
|
||||||
let leftOverYSpace = dialogHeight - bannerHeight - authPromptHeight - logoHeight;
|
let bannerSpace;
|
||||||
|
|
||||||
|
if (authPromptAllocation)
|
||||||
|
bannerSpace = authPromptAllocation.y1 - bannerAllocation.y1;
|
||||||
|
else
|
||||||
|
bannerSpace = 0;
|
||||||
|
|
||||||
|
let leftOverYSpace = bannerSpace - bannerHeight;
|
||||||
|
|
||||||
if (leftOverYSpace > 0) {
|
if (leftOverYSpace > 0) {
|
||||||
// First figure out how much left over space is up top
|
// First figure out how much left over space is up top
|
||||||
|
Loading…
Reference in New Issue
Block a user