List of usage examples for com.google.gwt.aria.client State HIDDEN
Attribute HIDDEN
To view the source code for com.google.gwt.aria.client State HIDDEN.
Click Source Link
From source file:geogebra.web.gui.app.docklayout.LayoutImpl.java
License:Apache License
protected static DivElement createRuler(Unit widthUnit, Unit heightUnit) { DivElement ruler = Document.get().createDivElement(); ruler.setInnerHTML(" "); Style style = ruler.getStyle(); style.setPosition(Position.ABSOLUTE); style.setZIndex(-32767);/*from w ww . jav a 2 s . co m*/ // Position the ruler off the top edge, double the size just to be // extra sure it doesn't show up on the screen. style.setTop(-20, heightUnit); // Note that we are making the ruler element 10x10, because some browsers // generate non-integral ratios (e.g., 1em == 13.3px), so we need a little // extra precision. style.setWidth(10, widthUnit); style.setHeight(10, heightUnit); style.setVisibility(Visibility.HIDDEN); State.HIDDEN.set(ruler, true); return ruler; }