Changes between Initial Version and Version 1 of Ticket #14788


Ignore:
Timestamp:
Feb 14, 2012, 12:26:07 AM (8 years ago)
Author:
bill
Comment:

That's true, we don't support moving widgets between documents at all, so I'm not surprised this breaks.

The obvious thing to try is to move all the popup widgets to the new document at the same time that you move the anchor DropDownButton/MenuBar/etc. widget.

Another possibility is to use before advice on dijit/popup's open() method, to (if necessary) move the popup to the same document as the anchor. Something like:

require(["dojo/aspect", "dojo/dom-construct", "dijit/popup"],
         function(aspect, construct, popup){
  aspect.before(popup, "open", function(args){
      construct.place(args.popup.around.domNode,
           args.around.domNode.ownerDocument.body);
  });
});

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #14788

    • Property Status changed from new to closed
    • Property Resolution changed from to wontfix
    • Property Type changed from defect to feature
    • Property Summary changed from Wrong placement of popup when Menu node moved to different document to Wrong placement of popup when anchor node moved to different document
  • Ticket #14788 – Description

    initial v1  
    66Sample code:
    77
     8{{{
    89<!doctype html>
    910<html>
     
    6970
    7071</html>
     72}}}