No way to show a popover from an action in the new header
Bug #1329125 reported by
Michael Spencer
This bug report is a duplicate of:
Bug #1337699: [sdk] Popups that should point to actions don't, with new header.
Edit
Remove
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Ubuntu UI Toolkit |
New
|
Undecided
|
Unassigned |
Bug Description
I have a action in the new header that I would like to trigger a popover when clicked. However, there is no way to attach the popover to the UI element that triggered the action, so it just pops up in the center of the screen.
To post a comment you must log in.
As a temporary workaround, you can find the caller using this hack:
var caller = findChild( mainView. header, action.objectName + "_header_button")
function findChild( obj,objectName) { push(obj) 0].objectName == objectName) {
childs. push(childs[ 0].data[ i])
childs. splice( 0, 1);
var childs = new Array(0);
childs.
while (childs.length > 0) {
if (childs[
return childs[0]
}
for (var i in childs[0].data) {
}
}
return null;
}