Subversion Repository Public Repository

litesoft

Diff Revisions 949 vs 950 for /trunk/Java/GWT/Client/src/org/litesoft/GWT/client/widgets/nonpublic/GwtElementDimensionHelperY.java

Diff revisions: vs.
  @@ -1,20 +1,20 @@
1 - // This Source Code is in the Public Domain per: http://unlicense.org
2 - package org.litesoft.GWT.client.widgets.nonpublic;
3 -
4 - import org.litesoft.commonfoundation.typeutils.*;
5 -
6 - import com.google.gwt.user.client.*;
7 -
8 - public class GwtElementDimensionHelperY extends AbstractGwtElementDimensionHelper {
9 - public static final GwtElementDimensionHelper INSTANCE = new GwtElementDimensionHelperY();
10 -
11 - protected GwtElementDimensionHelperY() {
12 - super( "'Y'", "height", "offsetHeight" );
13 - }
14 -
15 - @Override
16 - public int getPosition( Element pElement ) {
17 - Objects.assertNotNull( "Element", pElement );
18 - return DOM.getAbsoluteTop( pElement );
19 - }
20 - }
1 + // This Source Code is in the Public Domain per: http://unlicense.org
2 + package org.litesoft.GWT.client.widgets.nonpublic;
3 +
4 + import org.litesoft.commonfoundation.base.*;
5 +
6 + import com.google.gwt.user.client.*;
7 +
8 + public class GwtElementDimensionHelperY extends AbstractGwtElementDimensionHelper {
9 + public static final GwtElementDimensionHelper INSTANCE = new GwtElementDimensionHelperY();
10 +
11 + protected GwtElementDimensionHelperY() {
12 + super( "'Y'", "height", "offsetHeight" );
13 + }
14 +
15 + @Override
16 + public int getPosition( Element pElement ) {
17 + Confirm.isNotNull( "Element", pElement );
18 + return DOM.getAbsoluteTop( pElement );
19 + }
20 + }