Opened 10 years ago

Closed 10 years ago

#11056 closed defect (fixed)

dojox.widget.ColorPicker does not center selection in selector nodes

Reported by: Jared Jurkiewicz Owned by: Jared Jurkiewicz
Priority: high Milestone: 1.5
Component: General Version: 1.5.0b1
Keywords: Cc:
Blocked By: Blocking:

Description

dojox.widget.ColorPicker? does not center selection in selector nodes

what I mean by this is it uses the top/left coord to decide what color to pick. In reality it should be using the center point of the selector given the design of how the selectors work so that the midline of the two arrows in the hue selector is the color, and the central dot in the saturation selector is the saturation level.

This requires adding a bit of offset calculation, but it's not horrible.

So, patching!

Attachments (1)

position.patch (5.3 KB) - added by Jared Jurkiewicz 10 years ago.
Patch to add in offset calcing to position the selectors better.

Download all attachments as: .zip

Change History (2)

Changed 10 years ago by Jared Jurkiewicz

Attachment: position.patch added

Patch to add in offset calcing to position the selectors better.

comment:1 Changed 10 years ago by Jared Jurkiewicz

Resolution: fixed
Status: newclosed

(In [22007]) Fixing up position calculations for the selectors. Much better centering now. fixes #11056

Note: See TracTickets for help on using tickets.