Changeset 12179

Show
Ignore:
Timestamp:
01/27/08 17:55:35 (12 months ago)
Author:
bill
Message:

If dialog is marked as display:none in markup, override it since we are making it visibility:hidden instead. Fixes dialog display in themeTester. Refs #5669.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • dijit/trunk/Dialog.js

    r12162 r12179  
    157157                        dojo.body().appendChild(this.domNode); 
    158158                        this.inherited("postCreate",arguments); 
    159                         this.domNode.style.visibility = "hidden"; 
    160                         this.domNode.style.position = "absolute"; 
    161                         this.domNode.style.top = "-9999px"; 
     159                         
     160                        var s = this.domNode.style; 
     161                        s.visibility = "hidden"; 
     162                        s.position = "absolute"; 
     163                        s.display = ""; 
     164                        s.top = "-9999px"; 
     165 
    162166                        this.connect(this, "onExecute", "hide"); 
    163167                        this.connect(this, "onCancel", "hide");