Changes between Initial Version and Version 1 of Ticket #3300


Ignore:
Timestamp:
Jun 6, 2007, 10:51:13 PM (13 years ago)
Author:
bill
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #3300

    • Property Summary changed from Widget parent element as an optional attribute to Dialog, Tooltip: problems because they are moved to document.body
  • Ticket #3300 – Description

    initial v1  
    1 It seems that by default, a widget is created then appended to the document at the end of the body tag. It would be ''very useful'' to be able to specify a different node to attach the widget to when it is created.  In particular, an instance dijit.layout.Dialog will sometimes have form fields in its content and unless the domNode is a child of form you are submitting, the '''form fields get ignored'''.
     1
     2Dialog Tooltip contents, and drop downs (popups) are moved from their original position in the DOM tree to be direct children of <body>, thus causing a problem if you want to have *part* of a form inside a dialog and the rest of the form outside.  Also causes issues with styling, if the class=tundra tag is not on document.body but on a sub-node.
     3
     4The reason we move them is that leaving a dialog attached to a sub-node has problems too... if the subnode is a div with limited size and overflow: hidden or overflow: auto, then the Dialog won't be able to display outside the div.
     5
     6What to do?