Skip to content
Commit 0d73aaad authored by ivan tkachenko's avatar ivan tkachenko 🗯 Committed by Nate Graham
Browse files

ApplicationPage: Fix random gap at the top, above header

This is a rather common caveat of layout types, and it's easy to fall
for, especially because it can go unnoticed for a long time.

If
- a layout is stretched to be larger than the combined implicit size of
  its children items (plus margins), and
- none of the items are set to fill the layout
  (fillWidth/fillHeight depending on what is the 'primary' direction
  for a particular layout type),
then said layout would use the additional space to distribute its items,
including putting semi-random extra maring at the beginning and the end.
It even disregards items' alignment like AlignTop or AlignLeft.

The solution here is simple: don't stretch the layout to fill Flickable
content item, but let the Flickable implicitly work the other way
around: adapt contentHeight to the actual content's height.
parent 541686cb
Pipeline #468891 passed with stage
in 2 minutes and 39 seconds
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment