Package com.google.gwt.query.client.GQuery

Examples of com.google.gwt.query.client.GQuery.Offset


        String position = $element.css("position", true);
        if ("static".equals(position)){
            $element.get(0).getStyle().setPosition(Position.RELATIVE);
        }

        Offset curOffset = $element.offset();
        String curCSSTop = $element.css("top", true);
        String curCSSLeft = $element.css("left", true);
        long curTop = 0;
        long curLeft = 0;

        if (("absolute".equals(position) || "fixed".equals(position)) && ("auto".equals(curCSSTop) || "auto".equals
                (curCSSLeft))){
            Offset curPosition = $element.position();
            curTop = curPosition.top;
            curLeft = curPosition.left;
        }else{
            try {
                curTop = Long.parseLong(curCSSTop);
View Full Code Here


    }

    private static class OffsetInfo {
        private static OffsetInfo from(GQuery element) {
            OffsetInfo oi = new OffsetInfo();
            Offset offset = element.offset();
            oi.left = offset.left;
            oi.top = offset.top;
            oi.width = element.get(0).getOffsetWidth();
            oi.height = element.get(0).getOffsetHeight();
View Full Code Here

    }

    private static class OffsetInfo {
        private static OffsetInfo from(GQuery element) {
            OffsetInfo oi = new OffsetInfo();
            Offset offset = element.offset();
            oi.left = offset.left;
            oi.top = offset.top;
            oi.width = element.get(0).getOffsetWidth();
            oi.height = element.get(0).getOffsetHeight();
View Full Code Here

                finalLeft = oi.left + oi.width;
                placementClass = style.right();
                break;
        }

        Offset additionalOffset = getAdditionalOffset();
        if (additionalOffset != null) {
            finalTop += additionalOffset.top;
            finalLeft += additionalOffset.left;
        }
View Full Code Here

    }

    private static class OffsetInfo {
        private static OffsetInfo from(GQuery element) {
            OffsetInfo oi = new OffsetInfo();
            Offset offset = element.offset();
            oi.left = offset.left;
            oi.top = offset.top;
            oi.width = element.get(0).getOffsetWidth();
            oi.height = element.get(0).getOffsetHeight();
View Full Code Here

        String position = $element.css("position", true);
        if ("static".equals(position)) {
            $element.get(0).getStyle().setPosition(Position.RELATIVE);
        }

        Offset curOffset = $element.offset();
        String curCSSTop = $element.css("top", true);
        String curCSSLeft = $element.css("left", true);
        long curTop = 0;
        long curLeft = 0;

        if (("absolute".equals(position) || "fixed".equals(position)) && ("auto".equals(curCSSTop) || "auto".equals
                (curCSSLeft))) {
            Offset curPosition = $element.position();
            curTop = curPosition.top;
            curLeft = curPosition.left;
        } else {
            try {
                curTop = Long.parseLong(curCSSTop);
View Full Code Here

    }

    private static class OffsetInfo {
        private static OffsetInfo from(GQuery element) {
            OffsetInfo oi = new OffsetInfo();
            Offset offset = element.offset();
            oi.left = offset.left;
            oi.top = offset.top;
            oi.width = element.get(0).getOffsetWidth();
            oi.height = element.get(0).getOffsetHeight();
View Full Code Here

                finalLeft = oi.left + oi.width;
                placementClass = style.right();
                break;
        }

        Offset additionalOffset = getAdditionalOffset();
        if (additionalOffset != null) {
            finalTop += additionalOffset.top;
            finalLeft += additionalOffset.left;
        }
View Full Code Here

    }

    private static class OffsetInfo {
        private static OffsetInfo from(GQuery element) {
            OffsetInfo oi = new OffsetInfo();
            Offset offset = element.offset();
            oi.left = offset.left;
            oi.top = offset.top;
            oi.width = element.get(0).getOffsetWidth();
            oi.height = element.get(0).getOffsetHeight();
View Full Code Here

TOP

Related Classes of com.google.gwt.query.client.GQuery.Offset

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.