From 167c422c5e9faaca154cd7d0af1f94fdef131dc6 Mon Sep 17 00:00:00 2001 From: peterd Date: Tue, 10 Feb 2015 11:27:23 +0100 Subject: [PATCH] fit in view-port update --- README.md | 1 + index.html | 9 +++++---- jqColorPicker.js | 25 ++++++++++++++++--------- jqColorPicker.js.map | 2 +- jqColorPicker.min.js | 4 ++-- 5 files changed, 25 insertions(+), 16 deletions(-) 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({ - - - + + +