Mercurial > dive4elements > river
comparison flys-client/src/main/java/de/intevation/flys/client/client/ui/Toolbar.java @ 4013:0be65bc65cee
Set overflow behaviour of Toolbars to HIDDEN to avoid auto scrollbars.
author | Christian Lins <christian.lins@intevation.de> |
---|---|
date | Tue, 02 Oct 2012 10:38:57 +0200 |
parents | 0235cdb62c98 |
children |
comparison
equal
deleted
inserted
replaced
4012:9743bf17fce3 | 4013:0be65bc65cee |
---|---|
1 package de.intevation.flys.client.client.ui; | 1 package de.intevation.flys.client.client.ui; |
2 | 2 |
3 import com.smartgwt.client.types.Overflow; | |
4 import com.smartgwt.client.widgets.events.CloseClickEvent; | |
5 import com.smartgwt.client.widgets.events.CloseClickHandler; | |
3 import com.smartgwt.client.widgets.layout.HLayout; | 6 import com.smartgwt.client.widgets.layout.HLayout; |
4 import com.smartgwt.client.widgets.events.CloseClickHandler; | |
5 import com.smartgwt.client.widgets.events.CloseClickEvent; | |
6 import com.smartgwt.client.types.Overflow; | |
7 | 7 |
8 import de.intevation.flys.client.client.event.RedrawRequestHandler; | |
8 import de.intevation.flys.client.shared.model.Artifact; | 9 import de.intevation.flys.client.shared.model.Artifact; |
9 import de.intevation.flys.client.shared.model.User; | 10 import de.intevation.flys.client.shared.model.User; |
10 | |
11 import de.intevation.flys.client.client.event.RedrawRequestHandler; | |
12 | 11 |
13 | 12 |
14 public abstract class Toolbar extends HLayout { | 13 public abstract class Toolbar extends HLayout { |
15 | 14 |
16 protected OutputTab outputTab; | 15 protected OutputTab outputTab; |
17 | 16 |
18 | 17 |
19 public Toolbar(OutputTab outputTab) { | 18 public Toolbar(OutputTab outputTab) { |
20 super(); | 19 super(); |
21 setOverflow(Overflow.AUTO); | 20 |
21 // Set overflow to hidden in order to prevent nasty scrollbars in IE | |
22 setOverflow(Overflow.HIDDEN); | |
22 | 23 |
23 this.outputTab = outputTab; | 24 this.outputTab = outputTab; |
24 } | 25 } |
25 | 26 |
26 | 27 |
47 | 48 |
48 final DatacageWindow dc = new DatacageWindow( | 49 final DatacageWindow dc = new DatacageWindow( |
49 artifact, user, outs, outputTab.getCollectionView()); | 50 artifact, user, outs, outputTab.getCollectionView()); |
50 dc.addRedrawRequestHandler(handler); | 51 dc.addRedrawRequestHandler(handler); |
51 dc.addCloseClickHandler(new CloseClickHandler() { | 52 dc.addCloseClickHandler(new CloseClickHandler() { |
53 @Override | |
52 public void onCloseClick(CloseClickEvent event) { | 54 public void onCloseClick(CloseClickEvent event) { |
53 dc.destroy(); | 55 dc.destroy(); |
54 } | 56 } |
55 }); | 57 }); |
56 dc.show(); | 58 dc.show(); |