* @param c the component
* @param elem the child element
*/
public void sync(Component c, Element elem) {
if (initialized && curComponent == c && c.isRendered()) {
El el = elem != null ? new El(elem) : curComponent.el();
int width = el.getWidth();
int height = el.getHeight();
sides.get(0).setSize(width, 2).alignTo(el.dom, "tl", null);
sides.get(1).setSize(width, 2).alignTo(el.dom, "bl", new int[] {0, -2});
sides.get(2).setSize(2, height).alignTo(el.dom, "tr", new int[] {-2, 0});
sides.get(3).setSize(2, height).alignTo(el.dom, "tl", null);