If you resize the Base pane of a customview in code by setting the prefwidth or prefheight properties and then update the display (resize the form by dragging an edge or clicking the maximize button) the Base pane reverts to the size originally defined in the designer.
The small example attached demonstrates.
Click the Resize button then resize the form.
The small example attached demonstrates.
Click the Resize button then resize the form.