jquery-colorbox-rails 0.3.1 → 0.3.2

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: cd20cb00510df23113ba2799b042f97b59cdc288
4
- data.tar.gz: 2a62b82a96e499d0e74b55a69bbfaab78bdb3118
3
+ metadata.gz: bcda05541dde4aeea23fdf088a5c7f072d2dec6c
4
+ data.tar.gz: fe90d9a49829778c6aa80a2f6d6b6b3a443d4974
5
5
  SHA512:
6
- metadata.gz: f7c6ef343c41ecf4fd07d7e96a20342e918f9b9b82ce71269d936756ad1617607ba85251371f1d271ae9b4301517bbf024d8e402188b00b08e556adeeb4bfaa4
7
- data.tar.gz: 44de7f69c3c442e3088f6b0d75313a1fd34f8bd7801a558a9a20c8439cfff1da35063d1539dfd6d06f3ca9feb4d3492fb7821ed70dbebbc151115e5a096131af
6
+ metadata.gz: 7eaaaacf5b5eeb697d3fc78cf21cf107e44865d716aabd983b261a47c7a2cc18565704ec4547789f431a58d31999777dc63c5e8fb0e59705c0c299822136c24e
7
+ data.tar.gz: b41537067ddb1be123b7714d163729275df4087290cf9e0fcf9a6a5193e994997b687f8aec8e910be8043d096c833c1aac698b2f286070eebb19894092009f4b
data/README.md CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  jquery-colorbox-rails integrates [jquery.colorbox](https://github.com/jackmoore/colorbox) with rails 3.1+ asset pipeline.
4
4
 
5
- Colorbox version: <b id="colorbox-version">1.6.2</b>
5
+ Colorbox version: <b id="colorbox-version">1.6.3</b>
6
6
 
7
7
  ### Installation
8
8
 
@@ -1,3 +1,3 @@
1
1
  module JqueryColorboxRails
2
- VERSION = "0.3.1"
2
+ VERSION = "0.3.2"
3
3
  end
@@ -1,5 +1,5 @@
1
1
  /*!
2
- Colorbox 1.6.2
2
+ Colorbox 1.6.3
3
3
  license: MIT
4
4
  http://www.jacklmoore.com/colorbox
5
5
  */
@@ -413,8 +413,8 @@
413
413
  var maxWidth = settings.get('maxWidth');
414
414
  var maxHeight = settings.get('maxHeight');
415
415
 
416
- settings.w = (maxWidth !== false ? Math.min(initialWidth, setSize(maxWidth, 'x')) : initialWidth) - loadedWidth - interfaceWidth;
417
- settings.h = (maxHeight !== false ? Math.min(initialHeight, setSize(maxHeight, 'y')) : initialHeight) - loadedHeight - interfaceHeight;
416
+ settings.w = Math.max((maxWidth !== false ? Math.min(initialWidth, setSize(maxWidth, 'x')) : initialWidth) - loadedWidth - interfaceWidth, 0);
417
+ settings.h = Math.max((maxHeight !== false ? Math.min(initialHeight, setSize(maxHeight, 'y')) : initialHeight) - loadedHeight - interfaceHeight, 0);
418
418
 
419
419
  $loaded.css({width:'', height:settings.h});
420
420
  publicMethod.position();
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jquery-colorbox-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.1
4
+ version: 0.3.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Krzysztof Knapik
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-07-16 00:00:00.000000000 Z
11
+ date: 2015-08-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: railties