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 bill)

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, "width", "206px");
			//  style fix for IE (-4 more px)
			dojo.query(".dijitPaletteImg", this.colorPicker.domNode).forEach(function(node){, "margin", ".01em");
			});, "width", "202px");

Change History (1)

comment:1 Changed 11 years ago by bill

Component: GeneralDijit
Description: modified (diff)
Resolution: duplicate
Status: newclosed
Summary: ColorPallete blows up in IE/Chrome. 1.5ColorPalette blows up in IE/Chrome. 1.5

Like I wrote to you two weeks ago in #11551, you need to attach a test case.

Note: See TracTickets for help on using tickets.