388389390391392393394395396397398
Element td = insertCell(c, side, pos); td.appendChild(c.el().dom); if (i < len - 1) { c.el().setStyleAttribute("marginRight", spacing + "px"); } else { c.el().setStyleAttribute("marginRight", "0px"); } } } } // strip extra empty cells
101102103104105106107108109110111
for (int i = 0; i < count; i++) { Component c = container.getItem(i); if(!c.isVisible(false)){ continue; } c.el().makePositionable(true); c.el().setStyleAttribute("margin", "0px"); RowData data = null; LayoutData d = getLayoutData(c); if (d != null && d instanceof RowData) {
102103104105106107108109110111112
Component c = container.getItem(i); if(!c.isVisible(false)){ continue; } c.el().makePositionable(true); c.el().setStyleAttribute("margin", "0px"); RowData data = null; LayoutData d = getLayoutData(c); if (d != null && d instanceof RowData) { data = (RowData) d;
212213214215216217218219220221222
ph -= data.getHeight(); } else if (data.getHeight() == -1) { callLayout(c, false); ph -= c.getOffsetHeight(); ph -= c.el().getMargins("tb"); } } ph = ph < 0 ? 0 : ph;
245246247248249250251252253254255
double height = data.getHeight(); if (height > 0 && height <= 1) { height = height * ph; } height -= c.el().getMargins("tb"); setSize(c, (int) width, (int) height); } }
2627282930313233343536
super.onLayout(container, target); Component c = container.getItem(0); if (c != null) { callLayout(c, false); Point p = c.el().getAlignToXY(target.dom, "c-c", null); p = c.el().translatePoints(p); setPosition(c, p.x, p.y); } } }
27282930313233343536
Component c = container.getItem(0); if (c != null) { callLayout(c, false); Point p = c.el().getAlignToXY(target.dom, "c-c", null); p = c.el().translatePoints(p); setPosition(c, p.x, p.y); } } }
2526272829303132
@Override public void onTab(Component component, PreviewEvent pe) { pe.stopEvent(); Component c = (Component)component.getParent().getParent(); c.el().selectNode("iframe").focus(); } }