By default, WP Customer Area will adjust the height of the area, depending on the window height. It is useful for integrating the area into an application, so the height of the area will automatically the calculated height.
The reason for this comes from the sliding sidebar on the right of the area.
However, this behavior can be changed. The following function will tell WP Customer Area to only make the area a minimum of 500px height.
/** * Customize the height of the area to just a minimum of 500px * * @param $args array * * @return mixed * @see customer-area/src/php/core-classes/templates/customer-page.template.php */ function cuar_custom_area_height( $args ) { $args['data-tray-height-base'] = ''; // default: 'window' $args['data-tray-height-substract'] = ''; // only needed in 'window' mode $args['data-tray-height-minimum'] = 500; return $args; } add_action( 'cuar/core/page/sidebar-attributes', 'cuar_custom_area_height' );