OptionSelector components in flickable doesn't show its expansion

Bug #1481624 reported by Didier Roche-Tolomelli
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
ubuntu-ui-toolkit (Ubuntu)
Triaged
Medium
Unassigned

Bug Description

If a flickable only contains OptionSelector(s), the childrenRect isn't refreshed, and so, the options when expanding aren't shown.

For instance:
import QtQuick 2.4
import Ubuntu.Components 1.2

MainView {
    id: mainview
    objectName: "mainView"
    applicationName: "foo.bar"

    width: units.gu(40)
    height: units.gu(75)

    Page {
        title: "Settings"
        Flickable {
            id: flick

            anchors.fill: parent
            contentHeight: column.height

            Column {
                id: column
                width: flick.width

                OptionSelector {
                    text: i18n.tr("Label")
                    model: [i18n.tr("Value 1"),
                            i18n.tr("Value 2"),
                            i18n.tr("Value 3"),
                            i18n.tr("Value 4")]
                }
            }
        }
    }
}

A workaround is to set a Label after the OptionSelector with an empty space as a text:
                Label {
                    text: " "
                }

Tags: devexp
description: updated
Zsombor Egri (zsombi)
Changed in ubuntu-ui-toolkit (Ubuntu):
status: New → Triaged
importance: Undecided → Medium
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

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