Demo: Partly fix resizing constraint demo. (#6210, #5627)

Broken by 2569c6474
2 files changed