This example shows how you can specify a percent to constrain a view to the size of its containing window.
view
window