Fill panel width/height in custom/fit content modes when flexible spacer is in panel

The flexible spacer should always make the panel gain its maximum width/height; this implements that.

BUG:495378

Merge request reports

Loading