congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
Element.getOffsetHeight
Code IndexAdd Tabnine to your IDE (free)

How to use
getOffsetHeight
method
in
com.google.gwt.user.client.Element

Best Java code snippets using com.google.gwt.user.client.Element.getOffsetHeight (Showing top 20 results out of 315)

origin: libgdx/libgdx

  /** Update the current sizes.
   * 
   * @return true if the sizes changed, false if not. */
  public boolean updateSizes () {
    int offsetWidth = widget.getElement().getOffsetWidth();
    int offsetHeight = widget.getElement().getOffsetHeight();
    int clientWidth = widget.getElement().getClientWidth();
    int clientHeight = widget.getElement().getClientHeight();
    if (offsetWidth != curOffsetWidth || offsetHeight != curOffsetHeight || clientWidth != curClientWidth
      || clientHeight != curClientHeight) {
      this.curOffsetWidth = offsetWidth;
      this.curOffsetHeight = offsetHeight;
      this.curClientWidth = clientWidth;
      this.curClientHeight = clientHeight;
      return true;
    }
    return false;
  }
}
origin: libgdx/libgdx

  /** Update the current sizes.
   * 
   * @return true if the sizes changed, false if not. */
  public boolean updateSizes () {
    int offsetWidth = widget.getElement().getOffsetWidth();
    int offsetHeight = widget.getElement().getOffsetHeight();
    int clientWidth = widget.getElement().getClientWidth();
    int clientHeight = widget.getElement().getClientHeight();
    if (offsetWidth != curOffsetWidth || offsetHeight != curOffsetHeight || clientWidth != curClientWidth
      || clientHeight != curClientHeight) {
      this.curOffsetWidth = offsetWidth;
      this.curOffsetHeight = offsetHeight;
      this.curClientWidth = clientWidth;
      this.curClientHeight = clientHeight;
      return true;
    }
    return false;
  }
}
origin: com.extjs/gxt

/**
 * Returns the offset height of the element.
 * 
 * @return the height
 */
public int getHeight() {
 return dom.getOffsetHeight();
}
origin: com.ebmwebsourcing.geasytools/geasy-ui

public int getHeight() {
  return this.getElement().getOffsetHeight();
}
origin: org.eclipse.che.core/che-core-ide-ui

private int getVisibleRowCount() {
 int rh = view.getCalculatedRowHeight();
 int visibleHeight = getElement().getOffsetHeight();
 return (int) ((visibleHeight < 1) ? 0 : Math.ceil(visibleHeight / rh));
}
origin: com.github.gwtmaterialdesign/gwt-material-addins

@Override
public void load() {
  JsWaterfall.initWaterfall(getElement().getOffsetHeight(), openCallback::call, closeCallback::call, offset);
}
origin: info.magnolia.ui/magnolia-ui-vaadin-common-widgets

private int getScrollableHeight() {
  return getElement().getOffsetHeight() - thumbnailSizeSlider.getOffsetHeight();
}
origin: org.geomajas/geomajas-client-gwt2-impl

  @Override
  public void execute() {
    presenter.setSize(getElement().getOffsetWidth(), getElement().getOffsetHeight());
  }
});
origin: org.geomajas/geomajas-gwt-client-impl

  @Override
  public void execute() {
    presenter.setSize(getElement().getOffsetWidth(), getElement().getOffsetHeight());
  }
});
origin: OpenNMS/opennms

private void updateScrollPanelSize() {
  Element topologyComponent = DOM.getElementById("TopologyComponent");
  int topoHeight = topologyComponent.getOffsetHeight();
  int containerHeight = topoHeight - (m_focusedContainer.getElement().getOffsetTop() + 5);
  int tableHeight = m_focusedContainer.getOffsetHeight();
  if(containerHeight >= 0){
    m_scrollContainer.setHeight("" + Math.min(containerHeight, tableHeight) + "px");
    if(tableHeight > containerHeight){
      m_scrollContainer.getElement().getStyle().setOverflowY(Style.Overflow.SCROLL);
    } else{
      m_scrollContainer.getElement().getStyle().setOverflowY(Style.Overflow.HIDDEN);
    }
  }
}
origin: org.opennms.features.topology/org.opennms.features.topology.app

private void updateScrollPanelSize() {
  Element topologyComponent = DOM.getElementById("TopologyComponent");
  int topoHeight = topologyComponent.getOffsetHeight();
  int containerHeight = topoHeight - (m_focusedContainer.getElement().getOffsetTop() + 5);
  int tableHeight = m_focusedContainer.getOffsetHeight();
  if(containerHeight >= 0){
    m_scrollContainer.setHeight("" + Math.min(containerHeight, tableHeight) + "px");
    if(tableHeight > containerHeight){
      m_scrollContainer.getElement().getStyle().setOverflowY(Style.Overflow.SCROLL);
    } else{
      m_scrollContainer.getElement().getStyle().setOverflowY(Style.Overflow.HIDDEN);
    }
  }
}
origin: org.uberfire/uberfire-wires-core-grids

@Test
public void testScrollbarHeight() {
  final AbsolutePanel scrollPanel = mock(AbsolutePanel.class);
  final Element element = mock(Element.class);
  final Integer offsetHeight = 1014;
  final Integer clientHeight = 1000;
  doReturn(offsetHeight).when(element).getOffsetHeight();
  doReturn(clientHeight).when(element).getClientHeight();
  doReturn(element).when(scrollPanel).getElement();
  doReturn(scrollPanel).when(gridLienzoScrollHandler).getScrollPanel();
  final Integer expectedScrollbarHeight = offsetHeight - clientHeight;
  final Integer actualScrollbarHeight = gridLienzoScrollHandler.scrollbarHeight();
  assertEquals(expectedScrollbarHeight,
         actualScrollbarHeight);
}
origin: org.uberfire/uberfire-wires-core-grids

public Integer scrollbarHeight() {
  return getScrollPanel().getElement().getOffsetHeight() - getScrollPanel().getElement().getClientHeight();
}
origin: kiegroup/appformer

public Integer scrollbarHeight() {
  return getScrollPanel().getElement().getOffsetHeight() - getScrollPanel().getElement().getClientHeight();
}
origin: org.eclipse.che.core/che-core-ide-app

private void open() {
 if (getElement().getOffsetWidth() > 0 && getElement().getOffsetHeight() > 0) {
  terminal.open(terminalPanel.getElement());
  if (focusOnOpen) {
   terminal.focus();
  }
  isOpen = true;
 }
}
origin: com.extjs/gxt

protected void adjustCellWidth(Element cell, int width) {
 cell.getStyle().setPropertyPx("width", width);
 int adj = fly(cell).getFrameWidth("lr");
 Element inner = cell.getFirstChildElement().cast();
 fly(inner).setWidth(width - adj, true);
 if (isAttached()) {
  int before = cell.getOffsetHeight();
  fly(inner).setHeight(before, true);
  int after = cell.getOffsetHeight();
  // getting different values when some browsers are zoomed which is
  // causing the column heights to grow
  if (after != before) {
   fly(inner).setHeight(before + (before - after), true);
  }
 }
}
origin: Putnami/putnami-web-toolkit

private void showInput() {
  if (!this.displayInput) {
    this.displayInput = true;
    this.codeInput.asWidget().getElement().getStyle().setHeight(
      this.codeOutput.asWidget().getElement().getOffsetHeight(), Unit.PX);
    this.codeOutput.asWidget().removeFromParent();
    this.content.add(this.codeInput);
    this.codeInput.setFocus(true);
  }
}
origin: com.extjs/gxt

protected void moveFocus(Element selectedElem) {
 if (selectedElem == null) return;
 int containerLeft = getAbsoluteLeft();
 int containerTop = getAbsoluteTop();
 int left = selectedElem.getAbsoluteLeft() - containerLeft;
 int top = selectedElem.getAbsoluteTop() - containerTop;
 int width = selectedElem.getOffsetWidth();
 int height = selectedElem.getOffsetHeight();
 if (width == 0 || height == 0) {
  focusEl.setLeftTop(0, 0);
  return;
 }
 focusEl.setLeftTop(left, top);
}
origin: info.magnolia.ui/magnolia-ui-vaadin-common-widgets

private void setHeight() {
  // Calculate decoration size
  base.getStyle().setHeight(0, Unit.PX);
  base.getStyle().setOverflow(Overflow.HIDDEN);
  int h = getElement().getOffsetHeight();
  if (h < MIN_SIZE) {
    h = MIN_SIZE;
  }
  base.getStyle().setHeight(h, Unit.PX);
  base.getStyle().clearOverflow();
}
origin: org.eclipse.che.core/che-core-ide-ui

 @Override
 public void execute() {
  focusConstrainScheduled = false;
  int scrollLeft = getElement().getScrollLeft();
  int scrollTop = getElement().getScrollTop();
  int left = getElement().getOffsetWidth() / 2 + scrollLeft;
  int top = getElement().getOffsetHeight() / 2 + scrollTop;
  focusEl.getStyle().setTop(top, Style.Unit.PX);
  focusEl.getStyle().setLeft(left, Style.Unit.PX);
 }
});
com.google.gwt.user.clientElementgetOffsetHeight

Popular methods of Element

  • getStyle
  • setAttribute
  • appendChild
  • setId
  • getParentElement
  • cast
  • setInnerText
  • getId
  • setInnerHTML
  • addClassName
  • getAttribute
  • getInnerHTML
  • getAttribute,
  • getInnerHTML,
  • getFirstChildElement,
  • getInnerText,
  • getClientWidth,
  • removeChild,
  • getChildCount,
  • removeAttribute,
  • removeClassName

Popular in Java

  • Creating JSON documents from java classes using gson
  • startActivity (Activity)
  • getSharedPreferences (Context)
  • addToBackStack (FragmentTransaction)
  • PrintWriter (java.io)
    Wraps either an existing OutputStream or an existing Writerand provides convenience methods for prin
  • HashSet (java.util)
    HashSet is an implementation of a Set. All optional operations (adding and removing) are supported.
  • Callable (java.util.concurrent)
    A task that returns a result and may throw an exception. Implementors define a single method with no
  • Executors (java.util.concurrent)
    Factory and utility methods for Executor, ExecutorService, ScheduledExecutorService, ThreadFactory,
  • Notification (javax.management)
  • Reflections (org.reflections)
    Reflections one-stop-shop objectReflections scans your classpath, indexes the metadata, allows you t
  • Top plugins for Android Studio
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now