wcolorpicker-rails 1.3.0 → 1.3.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -8,7 +8,7 @@
|
|
8
8
|
* @license This wChar jQuery plug-in is dual licensed under the MIT and GPL licenses.
|
9
9
|
* @link http://www.websanova.com
|
10
10
|
* @github http://github.com/websanova/wColorPicker
|
11
|
-
* @version Version 1.3.
|
11
|
+
* @version Version 1.3.1
|
12
12
|
*
|
13
13
|
******************************************/
|
14
14
|
(function($)
|
@@ -272,8 +272,8 @@
|
|
272
272
|
|
273
273
|
$element.append(buttonHolder);
|
274
274
|
|
275
|
-
$this.width = $this.colorPicker.outerWidth();
|
276
|
-
$this.height = $this.colorPicker.outerHeight();
|
275
|
+
$this.width = $this.colorPicker.outerWidth(true);
|
276
|
+
$this.height = $this.colorPicker.outerHeight(true);
|
277
277
|
$this.paletteHolder.css({width: $this.width, height: $this.height}).hide();
|
278
278
|
|
279
279
|
if($this.settings.effect == 'fade') $this.paletteHolder.css({opacity: 0});
|
@@ -308,10 +308,10 @@
|
|
308
308
|
|
309
309
|
//init some vars
|
310
310
|
var left = 0;
|
311
|
-
var top = $this.paletteHolder.parent().outerHeight();
|
311
|
+
var top = $this.paletteHolder.parent().outerHeight(true);
|
312
312
|
$this.slideTopToBottom = top;
|
313
313
|
|
314
|
-
if(offset.left - $(window).scrollLeft() + $this.width > $(window).width()) left = -1 * ($this.width - $this.paletteHolder.parent().outerWidth());
|
314
|
+
if(offset.left - $(window).scrollLeft() + $this.width > $(window).width()) left = -1 * ($this.width - $this.paletteHolder.parent().outerWidth(true));
|
315
315
|
if(offset.top - $(window).scrollTop() + $this.height > $(window).height())
|
316
316
|
{
|
317
317
|
$this.slideTopToBottom = 0;
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: wcolorpicker-rails
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.3.
|
4
|
+
version: 1.3.1
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2012-10-
|
12
|
+
date: 2012-10-24 00:00:00.000000000 Z
|
13
13
|
dependencies: []
|
14
14
|
description: This gem Provides the Websanova Color Picker assets for your Rails application
|
15
15
|
.
|