You could only set two of the three vertical dimension properties (boxTop, boxBottom, boxHeight) at the same time. This will be omitted during the setup of the new third value. To reset a value you didn't want anymore, set it to null.
Get current value.
QxWidget.getBottom();
Set new value.
QxWidget.setBottom(newValue);