Options to consider are:
Set anchors in the views properties using the B4J Visual Designer, i.e. Vertical & Horizonal to BOTH.
View attachment 58616
OR
Use the views properties PrefWidth / PrefHeight which can be set f.e. in MainForm_Resize with conditions if required.