// Define the layout constraints using VFL syntax: var constraints = AutoLayout.VisualFormat.parse( [ 'H:|[view1(==view2)]-10-[view2]|', // The horizontal aspect of the layout 'V:|[view1,view2]|', // The vertical aspect of the layout ], {extended: true}, ) // Create a view, uses the constraints to calculate the actual positioning and sizing of spaces in the layout: var view = new AutoLayout.View({