diff options
author | Anthony Towns <aj@erisian.com.au> | 2011-07-16 23:08:49 -0700 |
---|---|---|
committer | Keith Packard <keithp@keithp.com> | 2011-07-16 23:08:49 -0700 |
commit | a482d904a3f391c3a24df3660acb3f3696aa6766 (patch) | |
tree | a950409571e4479f9ce9edc4b21aa881bd0839df | |
parent | 1681c57cbbfc5214dbc2a519e54ce9f29ffe3921 (diff) |
altosui: Make sure degree and minute values are visible (map preload)
Set min size to preferred size so that the value remains visible
instead of snapping to 0 pixels wide.
Signed-off-by: Keith Packard <keithp@keithp.com>
-rw-r--r-- | altosui/AltosSiteMapPreload.java | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/altosui/AltosSiteMapPreload.java b/altosui/AltosSiteMapPreload.java index c97f081c..876c14ac 100644 --- a/altosui/AltosSiteMapPreload.java +++ b/altosui/AltosSiteMapPreload.java @@ -105,6 +105,8 @@ class AltosMapPos extends Box { min = new JTextField("00.0000"); min_label = new JLabel("'"); set_value(default_value); + deg.setMinimumSize(deg.getPreferredSize()); + min.setMinimumSize(min.getPreferredSize()); add(label); add(Box.createRigidArea(new Dimension(5, 0))); add(hemi); |