aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAlberts Muktupāvels <alberts.muktupavels@gmail.com>2014-12-17 09:12:01 +0200
committerMike Gabriel <mike.gabriel@das-netzwerkteam.de>2015-10-27 17:02:38 +0100
commitadb9b2e8f02724619f498f40b8ed32c2561eac90 (patch)
tree0a79a646c89db82947b6d0f7e8e77ef883274a6f /src
parenteb9d205e7a728cc76d4d326c8b6ff36534b39824 (diff)
downloadarctica-greeter-adb9b2e8f02724619f498f40b8ed32c2561eac90.tar.gz
arctica-greeter-adb9b2e8f02724619f498f40b8ed32c2561eac90.tar.bz2
arctica-greeter-adb9b2e8f02724619f498f40b8ed32c2561eac90.zip
Fix prompt-box height.
Ported to ArcticaGreeter: Mike Gabriel <mike.gabriel@das-netzwerkteam.de>
Diffstat (limited to 'src')
-rw-r--r--src/prompt-box.vala3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/prompt-box.vala b/src/prompt-box.vala
index ecc7ef1..af3994f 100644
--- a/src/prompt-box.vala
+++ b/src/prompt-box.vala
@@ -283,6 +283,9 @@ public class PromptBox : FadableBox
base.get_preferred_height (out min, out nat);
min = round_to_grid (min + GreeterList.BORDER * 2) - GreeterList.BORDER * 2;
nat = round_to_grid (nat + GreeterList.BORDER * 2) - GreeterList.BORDER * 2;
+
+ if (position <= -1 || position >= 1)
+ min = nat = grid_size;
}
public void set_zone (Gtk.Widget zone)