Mercurial > dive4elements > river
diff flys-client/src/main/java/de/intevation/flys/client/client/ui/chart/MousePositionPanel.java @ 539:fea93eebd2fa
Improved the layout of the mouse position panel.
flys-client/trunk@2039 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Ingo Weinzierl <ingo.weinzierl@intevation.de> |
---|---|
date | Wed, 01 Jun 2011 11:59:59 +0000 |
parents | 75df57220104 |
children | 78907f0fb939 |
line wrap: on
line diff
--- a/flys-client/src/main/java/de/intevation/flys/client/client/ui/chart/MousePositionPanel.java Wed Jun 01 09:03:18 2011 +0000 +++ b/flys-client/src/main/java/de/intevation/flys/client/client/ui/chart/MousePositionPanel.java Wed Jun 01 11:59:59 2011 +0000 @@ -42,24 +42,32 @@ /** - * Initializes the layout of this component. + * Initializes the layout of this component. <b>Note:</b> This layout has a + * fixed width of 195px plus a margin of 5px. */ protected void initLayout() { - setLayoutAlign(Alignment.RIGHT); setMembersMargin(5); Label xDesc = new Label("Position: X = "); Label yDesc = new Label("Y = "); - xDesc.setWidth(60); - x.setWidth(25); + HLayout xLayout = new HLayout(); + xLayout.setWidth(125); + xLayout.addMember(xDesc); + xLayout.addMember(x); + + HLayout yLayout = new HLayout(); + yLayout.setWidth(70); + yLayout.addMember(yDesc); + yLayout.addMember(y); + + xDesc.setWidth(70); + x.setWidth(55); yDesc.setWidth(20); - y.setWidth(25); + y.setWidth(50); - addMember(xDesc); - addMember(x); - addMember(yDesc); - addMember(y); + addMember(xLayout); + addMember(yLayout); }