int hh = height == -1 ? Integer.MIN_VALUE : height;
((Component) widget).setPixelSize(ww, hh);
} else {
XElement.as(widget.getElement()).setSize(width, height, true);
if (widget instanceof RequiresResize) {
Scheduler.get().scheduleDeferred(new ScheduledCommand() {
@Override
public void execute() {
((RequiresResize) widget).onResize();
}
});