[Page] Cannot scroll content if its height is less than page height
Bug #1189728 reported by
Alberto Mardegan
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Ubuntu UI Toolkit |
Won't Fix
|
High
|
Tim Peeters |
Bug Description
Please try the attached test case.
If the flickable contentItem.height is less (or equal) than the page height, scrolling is disabled. This is wrong, because the visible height assigned to the flickable is not the whole page, but the page minus the header.
If you uncomment the "// +1" from the Rectangle height, you'll see that this allows scrolling the contents, and by far more than 1 pixel only.
Also, once you enable scrolling, there are some worrying warnings about property binding loops which I'd highly recommend to investigate. :-)
Changed in ubuntu-ui-toolkit: | |
importance: | Undecided → High |
assignee: | nobody → Tim Peeters (tpeeters) |
Changed in ubuntu-ui-toolkit: | |
status: | New → In Progress |
Changed in ubuntu-ui-toolkit: | |
status: | Invalid → In Progress |
Changed in ubuntu-ui-toolkit: | |
status: | In Progress → Won't Fix |
To post a comment you must log in.
The behavior is correct. The relation between page height and flickable content height is not important, but the flickable cannot be scrolled if flickable.height == flickable. contentHeight. In your case your flickable fills the page, so the heights of the flickable and page happen to be the same.
When you set the height of the rectangle to the height of the flickable+1, you can scroll more than one pixel. This is because the rectangle is much higher than te page (which has a height of MainView.height - header.height).
The binding loop seems to be caused by something inside the Flickable. If you give the rectangle id: rect, and set the contentHeight of the flickable to rect.height, the binding loop warning disappears for me. I'm not sure what causes it, but it seems to be something internal in the Flickable.