DocumentElement layer = location.layer;
Rectangle bounds = widget.getBounds();
// TopHeight
if (location.leading != null && location.size != null) {
if (direction == ResizeDirection.LEADING) {
int oldTop = bounds.top();
int deltaHeight = height - bounds.height;
int top = oldTop - deltaHeight;
setPixels(location.leading, top);
}
setPixels(location.size, height);