Alberplz / angular2-color-picker

Angular 2 Color Picker Directive, no dependences required.
MIT License
185 stars 82 forks source link

cpDialogDisplay=inline with a custom cpWidth leads to unusable hue slider #127

Open maxfriedmann opened 5 years ago

maxfriedmann commented 5 years ago

If you use the picker in inline mode and set the picker to a cpWidth of e.g. 400px, the hue slider drag event still calculates on a basis of 230px.

My current workaround is to set the hue slider manually to 140px:

.color-picker .hue {
    width: 140px !important;
}