// TopHeight
{
MethodInvocation invocation = getWidgetInvocation(widget, "setWidgetTopHeight");
if (invocation != null) {
if (direction == ResizeDirection.LEADING) {
int oldTop = bounds.top();
int deltaHeight = height - bounds.height;
int top = oldTop - deltaHeight;
setInvocationArgument(invocation, 1, top, false);
}
setInvocationArgument(invocation, 3, height, false);