buberdds / angular-bootstrap-colorpicker

Native AngularJS colorpicker directive. No dependency on jQuery or jQuery plugin is required.
MIT License
419 stars 226 forks source link

Fix #56 (applies scroll variables) #60

Closed Chexpir closed 9 years ago

Chexpir commented 10 years ago

Applies scrollX/scrollY variables effectively for fixing the relative positioning.

Nickproger commented 10 years ago

Looks like i have the same problem when i use it in Bootstrap-model. When do you plan to merge those PRs?

buberdds commented 10 years ago

@Nickproger The color picker in UI Bootstrap modal (the parent element position property must be set to relative) and colorpiker must have colorpicker-parent attribute set to true

<input colorpicker colorpicker-parent="true" type="text" ng-model="your_model" />

it's not working for u?

celdrake commented 9 years ago

Hi,

Any chance that this fix can be merged into master?

I'm having the same problem and the fix on this pull request works perfectly.

Thanks!

min-che commented 9 years ago

This fixed my problem in Chrome, but in Firefox, no matter which color I choose, it's stuck on #000000, and the color picker circle is stuck. Any ideas how to fix it? Adding a colorpicker-fixed-position set to true in html makes it work, but position is way off.

edit: I withdraw my question, setting the input position to absolute, and the colorpicker dropdown menu to relative solved my problem (combined with colorpicker-fixed-position="true")