Not possible to limit the height of an ActionSelectionPopover

Bug #1418983 reported by Michael Sheldon
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
ubuntu-ui-toolkit (Ubuntu)
Invalid
Undecided
Unassigned

Bug Description

Setting the height on an ActionSelectionPopover results in it being positioned differently and the width being reduced, without the height changing.

Steps to reproduce:

1) Run the following QML:

import QtQuick 2.0
import Ubuntu.Components 1.1
import Ubuntu.Components.Popups 1.0
import Ubuntu.Components.ListItems 1.0 as ListItems

MainView {

    useDeprecatedToolbar: false

    Component.onCompleted: {
        PopupUtils.open(menuPopover);
    }

    Component {
        id: menuPopover
        ActionSelectionPopover {
            id: menuList
            height: units.gu(10)

            actions: ActionList {
                Action {
                    text: "Test 1"
                }
                Action {
                    text: "Test 2"
                }
                Action {
                    text: "Test 3"
                }
                Action {
                    text: "Test 4"
                }
                Action {
                    text: "Test 5"
                }
                Action {
                    text: "Test 6"
                }
            }

            delegate: ListItems.Standard {
                text: action.text
            }
        }
    }
}

Expected result:

 The popup should have a height of 10gu (and should scroll content, see bug #1418981)

Actual result:

 The popup retains the same height but the width and positioning is altered.

Revision history for this message
Cris Dywan (kalikiana) wrote :

As documented, you should be using contentHeight (analoguous to contentWidth).

Changed in ubuntu-ui-toolkit (Ubuntu):
status: New → Invalid
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.