Opened 11 years ago
Closed 11 years ago
#11646 closed defect (duplicate)
ColorPalette blows up in IE/Chrome. 1.5
Reported by: | Neil Lindberg | Owned by: | anonymous |
---|---|---|---|
Priority: | high | Milestone: | tbd |
Component: | Dijit | Version: | 1.5 |
Keywords: | Cc: | ||
Blocked By: | Blocking: |
Description (last modified by )
The ColorPalete, which worked in FF/IE/Chrome just fine with 1.4 blows up in Chrome/IE.
The issues was resolved by re-setting width on programmatically created ColorPalette, but then upon choosing a color a new style problem is seen in IE8(win).
Here is the creation function I use with a widget. You can see the size fix commented. The blow-up on color select/click is fixed by the not-so-pretty setting of a margin to 0.01em in IE (dijitPaletteImg).
createColorPickerGUI: function(){ this.colorPicker = new dijit.ColorPalette({ title: "Color Options" }).placeAt(dojo.byId(this.colorPickerHolder.domNode), "last"); this.connect(this.colorPicker, "onChange", dojo.hitch(this, "newColor")); // style fix for Chrome, doesn't interfere with FF dojo.style(this.colorPicker.domNode, "width", "206px"); if(dojo.isIE){ // style fix for IE (-4 more px) dojo.query(".dijitPaletteImg", this.colorPicker.domNode).forEach(function(node){ dojo.style(node, "margin", ".01em"); }); dojo.style(this.colorPicker.domNode, "width", "202px"); } this.createPreviewBox(); },
Change History (1)
comment:1 Changed 11 years ago by
Component: | General → Dijit |
---|---|
Description: | modified (diff) |
Resolution: | → duplicate |
Status: | new → closed |
Summary: | ColorPallete blows up in IE/Chrome. 1.5 → ColorPalette blows up in IE/Chrome. 1.5 |
Note: See
TracTickets for help on using
tickets.
Like I wrote to you two weeks ago in #11551, you need to attach a test case.