Automattic / Iris

A(n awesome) Color Picker

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Color selector over incorrect area of palette or not even in grid

afragen opened this issue · comments

@mattwiebe I'm trying to incorporate the Iris color picker into a plugin and I'm getting a very strange problem.

the-events-calendar/the-events-calendar-category-colors#5

After colors are set, when the picker opens the selector is not over the color. Sometimes it's not even inside the grid.

I'm testing locally in MAMP, MultiSite 3.7RC2, TwentyTwelve and minimal plugins.

Any ideas what could be causing this?

I think I figured this out. I had to use $('.teccc-color-picker').iris(myOptions); in my setup. I was using something wpColorPicker instead of iris.

I can't remember where I got that from.

Yeah. wpColorPicker is a thin wrapper around Iris specific to use in WP's UI. Iris is more generic.

Thanks Matt. As I'm using this in a WP plugin I'm back to wpColorPicker