← Back to team overview

touch-packages team mailing list archive

[Bug 1418983] Re: Not possible to limit the height of an ActionSelectionPopover

 

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

** Changed in: ubuntu-ui-toolkit (Ubuntu)
       Status: New => Invalid

-- 
You received this bug notification because you are a member of Ubuntu
Touch seeded packages, which is subscribed to ubuntu-ui-toolkit in
Ubuntu.
https://bugs.launchpad.net/bugs/1418983

Title:
  Not possible to limit the height of an ActionSelectionPopover

Status in ubuntu-ui-toolkit package in Ubuntu:
  Invalid

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.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/ubuntu-ui-toolkit/+bug/1418983/+subscriptions


References