← Back to team overview

touch-packages team mailing list archive

[Bug 1424588] [NEW] unable to center popover in caller

 

Public bug reported:

The design for the browser app’s contextual menu requires the popover to
be centered inside its caller (the webview). See
https://docs.google.com/a/canonical.com/presentation/d/1woHjO8K4iqyVZZlfQ4BXL0DhYbwkEmZ7wvcUhYzHDRk/edit#slide=id.g34608d763_079
for reference. The popover is opened using PopupUtils.open(…).

I’ve tried two different approaches to achieve that, but none actually
works:

 - passing the webview as the caller
 - passing no caller parameter at all

In both cases, the popover is horizontally centered, but it’s anchored
to the top of the scene.

I’m attaching a standalone example that demonstrates the issue.

** Affects: ubuntu-ux
     Importance: Undecided
         Status: New

** Affects: ubuntu-ui-toolkit (Ubuntu)
     Importance: Undecided
         Status: New

** Attachment added: "test.qml"
   https://bugs.launchpad.net/bugs/1424588/+attachment/4325344/+files/test.qml

-- 
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/1424588

Title:
  unable to center popover in caller

Status in Ubuntu UX bugs:
  New
Status in ubuntu-ui-toolkit package in Ubuntu:
  New

Bug description:
  The design for the browser app’s contextual menu requires the popover
  to be centered inside its caller (the webview). See
  https://docs.google.com/a/canonical.com/presentation/d/1woHjO8K4iqyVZZlfQ4BXL0DhYbwkEmZ7wvcUhYzHDRk/edit#slide=id.g34608d763_079
  for reference. The popover is opened using PopupUtils.open(…).

  I’ve tried two different approaches to achieve that, but none actually
  works:

   - passing the webview as the caller
   - passing no caller parameter at all

  In both cases, the popover is horizontally centered, but it’s anchored
  to the top of the scene.

  I’m attaching a standalone example that demonstrates the issue.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu-ux/+bug/1424588/+subscriptions


Follow ups

References