Opened 14 years ago
Closed 14 years ago
#4549 closed defect (fixed)
style and class not copied during programmatic creation after applying [10527]
Reported by: | Douglas Hays | Owned by: | Adam Peller |
---|---|---|---|
Priority: | high | Milestone: | 1.0 |
Component: | Dijit | Version: | 0.9 |
Keywords: | Cc: | ||
Blocked By: | Blocking: |
Description (last modified by )
After applying the attributeMap changes, neither style nor class are copied from the srcNodeRef during programmatic widget creation. So now:
<div dojoType="dijit.form.Button" label="hello" style="margin:9px;padding:9px;border:2px solid red;"></div>
renders differently than:
<div id="buttonContainer" style="margin:9px;padding:9px;border:2px solid red;"></div> <script type="text/javascript"> dojo.addOnLoad(function(){ var params = { label: "hello" }; var widget = new dijit.form.Button(params, "buttonContainer"); }); </script>
when it was the same before [10527] was applied. It should be the same. This currently is causing the test_textarea.html programmatic example to render incorrectly.
There was code in _Templated.js to copy the style and class during buildRendering that was removed by [10527].
Change History (3)
comment:1 Changed 14 years ago by
Description: | modified (diff) |
---|
comment:2 Changed 14 years ago by
comment:3 Changed 14 years ago by
Resolution: | → fixed |
---|---|
Status: | new → closed |
Note: See
TracTickets for help on using
tickets.
Actually this is by design. New way of doing it is to specify style and class via javascript, like
But that should be documented in http://dojotoolkit.org/book/dojo-porting-guide-0-9-x-1-0/dijit and also the test files should be updated.