public void removeChild(Element container, Element child) { container.removeFromParent(); // We want this code to be resilient to the child having already been // removed from its container (perhaps by widget code). if (child.getParentElement() == container) { child.removeFromParent(); } // Cleanup child styles set by fillParent(). Style style = child.getStyle(); style.clearPosition(); style.clearLeft(); style.clearTop(); style.clearWidth(); style.clearHeight(); } }
/** * Put the node back into a clean state and clear fields. */ private void cleanup() { if (opening) { animFrame.getStyle().clearDisplay(); } else { animFrame.getStyle().setDisplay(Display.NONE); childContainer.setInnerHTML(""); } animFrame.getStyle().clearHeight(); animFrame.getStyle().clearPosition(); this.contentContainer = null; this.childContainer = null; this.animFrame = null; } }
public void clearScrollHeight() { this.scroll.getElement().getStyle().clearHeight(); }
@Override public void clearHeight() { element.getStyle().clearHeight(); }
public void clearScrollHeight() { this.scroll.getElement().getStyle().clearHeight(); }
public CubaSuggestPopup() { Style style = loadingImage.getElement().getStyle(); style.clearWidth(); style.clearHeight(); style.setDisplay(Style.Display.BLOCK); } }
setValue(layer, "height", layer.height, layer.heightUnit, true, true); } else { style.clearHeight();
private void setInitialCollapse(boolean collapse) { this.collapsed = collapse; this.collapsableElement.getStyle().clearHeight(); StyleUtils.removeStyle(this.collapsableElement, CollapseHelper.STYLE_COLLAPSING); StyleUtils.toggleStyle(this.collapsableElement, CollapseHelper.STYLE_VISIBLE, !collapse); }
@Override public void execute() { final int h = tree.getOffsetHeight(); final int maxHeight = computeMaxHeight(); if ( h > maxHeight ) { scroll.setHeight( maxHeight + "px" ); } else { scroll.getElement().getStyle().clearHeight(); } popup.showRelativeTo( p ); } } );
@Override public void execute() { final int h = tree.getOffsetHeight(); final int maxHeight = computeMaxHeight(); if ( h > maxHeight ) { scroll.setHeight( maxHeight + "px" ); } else { scroll.getElement().getStyle().clearHeight(); } popup.showRelativeTo( p ); } } );
@Override public void execute() { final int h = tree.getOffsetHeight(); final int maxHeight = computeMaxHeight(); if ( h > maxHeight ) { scroll.setHeight( maxHeight + "px" ); } else { scroll.getElement().getStyle().clearHeight(); } popup.showRelativeTo( p ); } } );
private void setInitialCollapse(boolean collapse) { this.collapsed = collapse; this.collapsableElement.getStyle().clearHeight(); StyleUtils.removeStyle(this.collapsableElement, CollapseHelper.STYLE_COLLAPSING); StyleUtils.toggleStyle(this.collapsableElement, CollapseHelper.STYLE_VISIBLE, !collapse); }
@Override public boolean execute() { CollapseHelper.this.collapsableElement.getStyle().clearHeight(); StyleUtils.removeStyle(CollapseHelper.this.collapsableElement, CollapseHelper.STYLE_COLLAPSING); StyleUtils.addStyle(CollapseHelper.this.collapsableElement, CollapseHelper.STYLE_COLLAPSE); StyleUtils.toggleStyle(CollapseHelper.this.collapsableElement, CollapseHelper.STYLE_VISIBLE, !collapse); return false; } }, 350);
@Override public boolean execute() { CollapseHelper.this.collapsableElement.getStyle().clearHeight(); StyleUtils.removeStyle(CollapseHelper.this.collapsableElement, CollapseHelper.STYLE_COLLAPSING); StyleUtils.addStyle(CollapseHelper.this.collapsableElement, CollapseHelper.STYLE_COLLAPSE); StyleUtils.toggleStyle(CollapseHelper.this.collapsableElement, CollapseHelper.STYLE_VISIBLE, !collapse); return false; } }, 350);
@Override public void execute() { final int h = tree.getOffsetHeight(); final int maxHeight = computeMaxHeight(); if ( h > maxHeight ) { scroll.setHeight( maxHeight + "px" ); } else { scroll.getElement().getStyle().clearHeight(); } popup.showRelativeTo( p ); if ( rootClass == null ) { popup.hide(); } } } );
private <X> X doWithClone(Function<Element, X> callback) { Element clon = DOM.clone(control.getElement(), true); clon.getStyle().setPosition(Position.ABSOLUTE); clon.getStyle().clearPadding(); clon.getStyle().clearWidth(); clon.getStyle().clearHeight(); Document.get().getBody().appendChild(clon); X returnValue = callback.apply(clon); clon.removeFromParent(); return returnValue; } }
public void removeChild(Element container, Element child) { container.removeFromParent(); // We want this code to be resilient to the child having already been // removed from its container (perhaps by widget code). if (child.getParentElement() == container) { child.removeFromParent(); } // Cleanup child styles set by fillParent(). Style style = child.getStyle(); style.clearPosition(); style.clearLeft(); style.clearTop(); style.clearWidth(); style.clearHeight(); } }
/** * Put the node back into a clean state and clear fields. */ private void cleanup() { if (opening) { animFrame.getStyle().clearDisplay(); } else { animFrame.getStyle().setDisplay(Display.NONE); childContainer.setInnerHTML(""); } animFrame.getStyle().clearHeight(); animFrame.getStyle().clearPosition(); this.contentContainer = null; this.childContainer = null; this.animFrame = null; } }
private void clearElementStyle() { Element e = this.getElement(); Style style = e.getStyle(); style.clearPosition(); style.clearTop(); style.clearBottom(); style.clearWidth(); style.clearHeight(); style.clearZIndex(); e.getParentElement().getStyle().clearPaddingTop(); } }
private void clearElementStyle() { Element e = this.getElement(); Style style = e.getStyle(); style.clearPosition(); style.clearTop(); style.clearBottom(); style.clearWidth(); style.clearHeight(); style.clearZIndex(); e.getParentElement().getStyle().clearPaddingTop(); } }