diff --git a/README.md b/README.md index 16f77c9..c45ee06 100644 --- a/README.md +++ b/README.md @@ -50,6 +50,7 @@ $('.color').colorPicker({ cssAddon: '', // adds css to existing margin: '', // positioning margin (can also be set in cssAddon) scrollResize: true // toggle for reposition colorPicker on window.resize/scroll + gap: 4 // gap to right and bottom edge of view port if repositioned to fit preventFocus: false // prevents default on focus of input fields, body: document.body // the element where the events are attached to (touchstart, mousedown, pointerdown, focus, click, change) }); diff --git a/index.html b/index.html index 8e0a49a..3815003 100644 --- a/index.html +++ b/index.html @@ -94,9 +94,9 @@ window.myColorPicker = $('input.color').colorPicker({ - - - + + +