On Lines Plymouth splash, ensure password field doesn’t bump into the Debian image even for smaller height screens. (Closes: #774226)

This commit is contained in:
Aurélien COUDERC
2017-01-03 20:54:00 +00:00
parent b374557802
commit 1c795ccccd
2 changed files with 12 additions and 0 deletions

8
debian/changelog vendored
View File

@@ -1,3 +1,11 @@
desktop-base (9.0.1) UNRELEASED; urgency=medium
[ Aurélien COUDERC ]
* On Lines Plymouth splash, ensure password field doesnt bump into the
Debian image even for smaller height screens. (Closes: #774226)
-- Aurélien COUDERC <zecoucou@free.fr> Tue, 03 Jan 2017 21:50:10 +0100
desktop-base (9.0.0) unstable; urgency=medium
[ Aurélien COUDERC ]

View File

@@ -213,6 +213,10 @@ fun TextYOffset() {
if (y + text_height > min_height)
y = min_height - text_height;
# Ensure we dont bump into the Debian8 image.
# The approx height of the 3 text lines + password input is 140 px.
y = Math.Min(y, debian8_sprite.GetY() - 140);
return y;
}