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:
8
debian/changelog
vendored
8
debian/changelog
vendored
@@ -1,3 +1,11 @@
|
||||
desktop-base (9.0.1) UNRELEASED; urgency=medium
|
||||
|
||||
[ Aurélien COUDERC ]
|
||||
* On Lines Plymouth splash, ensure password field doesn’t 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 ]
|
||||
|
||||
@@ -213,6 +213,10 @@ fun TextYOffset() {
|
||||
if (y + text_height > min_height)
|
||||
y = min_height - text_height;
|
||||
|
||||
# Ensure we don’t 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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user