Header sections anchors should be documented better

Bug #1605097 reported by Dubstar_04
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
ubuntu-ui-toolkit (Ubuntu)
Confirmed
Low
Tim Peeters

Bug Description

The header sections should be flickable to allow unlimited actions to be added and scrolled though.

The source [1] comments state "It is strongly recommended to limit the number of sections to two or three." but this is very limiting and should allow more flexibility.

Currently if there are too many actions in the header for the page width part of the component is clipped and the actions cannot be used. see attached screenshot.

[1] http://bazaar.launchpad.net/~ubuntu-sdk-team/ubuntu-ui-toolkit/staging/view/head:/src/Ubuntu/Components/1.3/Sections.qml

Revision history for this message
Dubstar_04 (dubstar-04) wrote :
Revision history for this message
Andrea Bernabei (faenil) wrote :

This should have landed long ago.

Maybe a regression? I will let timp comment

Tim Peeters (tpeeters)
Changed in ubuntu-ui-toolkit (Ubuntu):
importance: Undecided → High
assignee: nobody → Tim Peeters (tpeeters)
Revision history for this message
Dubstar_04 (dubstar-04) wrote :

Turns out if you add width: parent.width to the section it becomes scrollable.

This should be included in the documentation [1] and this marked as a bug with the sdk docs rather than the ui toolkit?

[1] https://developer.ubuntu.com/api/apps/qml/sdk-15.04.1/Ubuntu.Components.Sections/

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in ubuntu-ui-toolkit (Ubuntu):
status: New → Confirmed
Revision history for this message
Tim Peeters (tpeeters) wrote :

Right. The implicitWidth is the width that is required to show all sections without scrolling. If the width (or left and right anchors) are set for the Sections, scrolling will be automatically enabled when needed. I need to update the documentation.

Tim Peeters (tpeeters)
summary: - Header sections should be flickable
+ Header sections anchors should be documented better
Changed in ubuntu-ui-toolkit (Ubuntu):
importance: High → Low
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Bug attachments

Remote bug watches

Bug watches keep track of this bug in other bug trackers.