Java Code Examples for com.google.gwt.dom.client.Style#clearLeft()

The following examples show how to use com.google.gwt.dom.client.Style#clearLeft() . These examples are extracted from open source projects. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may want to check out the right sidebar which shows the related API usage.
Example 1
private void unclipImage() {
  Style style = image.getElement().getStyle();
  style.clearLeft();
  style.clearTop();
  style.clearWidth();
  style.clearHeight();
}
 
Example 2
private void cancelMouseMove() {
    mouseMoveCanceled = true;

    // reset and remove everything related to the event handling
    Event.releaseCapture(getElement());
    setFocus(false);

    if (moveRegistration != null) {
        moveRegistration.removeHandler();
        moveRegistration = null;
    }

    mouseMoveStarted = false;
    removeGlobalResizeStyle();

    Style s = getElement().getStyle();
    s.setZIndex(1);

    // reset the position of the event
    int dateCellWidth = getDateCellWidth();
    int dayOffset = startXrelative / dateCellWidth;
    s.clearLeft();

    calendarItem.setStartTime(startDatetimeFrom);
    calendarItem.setEndTime(startDatetimeTo);

    long startFromMinutes = (startDatetimeFrom.getHours() * 60)
            + startDatetimeFrom.getMinutes();
    long range = calendarItem.getRangeInMinutes();

    startFromMinutes = calculateStartFromMinute(startFromMinutes,
            startDatetimeFrom, startDatetimeTo, dayOffset);
    if (startFromMinutes < 0) {
        range += startFromMinutes;
    }

    updatePosition(startFromMinutes, range);

    startY = -1;
    startX = -1;

    // to reset the event width
    ((DateCell) getParent()).recalculateItemWidths();
}
 
Example 3
Source Project: cuba   File: CubaPopupViewWidget.java    License: Apache License 2.0 4 votes vote down vote up
protected void resetPopupPosition() {
    Style style = popup.getElement().getStyle();
    style.clearTop();
    style.clearLeft();
}