[sdk] Need a context menu component
Bug #1424588 reported by
Olivier Tilloy
This bug affects 2 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Ubuntu UX |
Fix Committed
|
Medium
|
Olga Kemmet | ||
ubuntu-ui-toolkit (Ubuntu) |
Confirmed
|
High
|
Cris Dywan |
Bug Description
The design for the browser app’s contextual menu requires the popover to be centered inside its caller (the webview). See https:/
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.
Related branches
lp:~ubuntu-sdk-team/ubuntu-ui-toolkit/contextMenu
On hold
for merging
into
lp:ubuntu-ui-toolkit/staging
- Ubuntu SDK team: Pending requested
-
Diff: 615 lines (+374/-47) (has conflicts)15 files modifiedcomponents.api (+17/-0)
examples/ubuntu-ui-toolkit-gallery/ExampleContextMenu.qml (+59/-0)
examples/ubuntu-ui-toolkit-gallery/NewListItems.qml (+6/-0)
examples/ubuntu-ui-toolkit-gallery/Popover.qml (+5/-0)
src/Ubuntu/Components/ComponentModule.pro (+4/-0)
src/Ubuntu/Components/Popups/1.3/ContextMenu.qml (+44/-0)
src/Ubuntu/Components/Popups/1.3/ListItemContextMenu.qml (+11/-47)
src/Ubuntu/Components/Popups/1.3/MenuGroup.qml (+46/-0)
src/Ubuntu/Components/Popups/1.3/MenuItem.qml (+86/-0)
src/Ubuntu/Components/Popups/1.3/Popover.qml (+1/-0)
src/Ubuntu/Components/Popups/Popups.pro (+4/-0)
src/Ubuntu/Components/Popups/qmldir (+3/-0)
src/Ubuntu/Components/Themes/Ambiance/1.3/ContextMenuForegroundStyle.qml (+43/-0)
src/Ubuntu/Components/Themes/Ambiance/Ambiance.pro (+2/-0)
src/Ubuntu/Components/plugin/uclistitem.cpp (+43/-0)
Changed in ubuntu-ux: | |
status: | New → In Progress |
importance: | Undecided → Medium |
assignee: | nobody → Giorgio Venturi (giorgio-venturi) |
tags: | added: design-sync |
Changed in ubuntu-ui-toolkit (Ubuntu): | |
importance: | Undecided → High |
assignee: | nobody → Christian Dywan (kalikiana) |
summary: |
- Need a context menu component + [sdk] Need a context menu component |
Changed in ubuntu-ux: | |
assignee: | Giorgio Venturi (giorgio-venturi) → Olga Kemmet (olga-kemmet) |
To post a comment you must log in.
Attaching a screenshot of the result.