itsjavi / bootstrap-colorpicker

Bootstrap Colorpicker is a modular color picker plugin for Bootstrap.
https://itsjavi.com/bootstrap-colorpicker/
MIT License
1.38k stars 367 forks source link

colorpicker don't follow item in modal #234

Closed Kurairaito closed 6 years ago

Kurairaito commented 7 years ago

Hi,

When using colorpicker in a scrollable modal view, when the colors picker is shown, if you scroll with the mouse's wheel, the colorpicker don't move

Example (the modal automaticcaly open, click the right rectangle to open color picker and then scroll the page): http://jsfiddle.net/g4b2bdqp/3/

Expected behavior is, like in a normal page, follow the parent element.

Note : tested with bootstrap 3.3.5 & firefox

Best regards, Kurairaito

itsjavi commented 7 years ago

Ok this needs investigation. I have in mind a major refactoring to revisit the used Bootstrap components and remove all possible tweaks so the original code is used as much as possible. This should make this library consistent with the original BS components. There is no quick solution for now.

PS: Thanks for providing an example I really appreciate that.

Herst commented 6 years ago

You can use container: true but then the alignment will be off: http://jsfiddle.net/gt0x7u4j/