jscrollpane-rails 2.0.17.4 → 2.0.18

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,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- ZjI5ODEwNjBkMWMyYWI1ZTlkYjE3ZmUyZmY0NDJjYTRmOTdhN2YzOA==
4
+ YTcxMGMyMzlhMTQwYjI5OGY4MjdjYzFmZGExNWVlZGE1YWMxNjk1Yw==
5
5
  data.tar.gz: !binary |-
6
- OTE4OTE4MjIyYjUyZGRlMmRkNDk1YWIyNDYyN2E0MTVhNjg0NzFhNA==
6
+ ZGQxYmFlZGMyZWMzN2RhZjg3MzBhOWFmYmRkZmJkYjM4MzJjMjFmOQ==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- MzNiYWJkMDEwMzIzOTU4NDk3YzBlNWZkNzcyZDBhMmQ0MjQwNWFjNjlmMzAy
10
- YjhiN2UxNjIwMjQ5MTM5YjBmZmM2ZmZkZDVmODZjMTE5YzU2NGU5ZmY1ZWM4
11
- ZmQ0M2IwZjUwNzhjNmU5MjdiMmMzZjE3M2E0MzIzNjEyZTkxNTc=
9
+ ZGEwZjM4Y2M4ZmU1ZmNhNmZmOGQ5ZjgzNjZmZWVlZGM2NjA5OTFmNjBkNWQw
10
+ N2U4MTc4ZjdjY2YwM2ZlYWMwZTdmY2UzMjliYmFhNzIwNGZiMmY2NmNlNzM2
11
+ Y2M4OTk5MzRmNWYxMmZlZDNlZmE2Y2M0YTViM2RhNTY4YzczMjQ=
12
12
  data.tar.gz: !binary |-
13
- MTNjZmI1NmRmZTg0OTQ1OTNjN2RlYzU3M2VjNDc2NDVmMTEyN2Y1ZDQ0Yzc0
14
- ZDhiYTNlOTU2NjFiOTEyZWU2MDk2MTczZTcyNDU4NDBhZGJhNDA5OGNlZDRl
15
- MzM5N2VkMTlkOGI5Mjk4ZDBmNDg3ZmZmZDMyMWE1MjllYzI0NWU=
13
+ ZmFhZGUxNTZjYmM2N2E5MWRjMTk4N2U1NzBhY2VjYmQzNzI3NjJmZGRlYmFj
14
+ MWYzNGY0ZDQ3YzYwN2U5ZTRhMDY3NzU4MGFiNDIxMDdjOWJlYzBiYjcwMmJl
15
+ NTFhYjljMmZiZTBiMzdjYWNlN2UxYmZhMTQ5OTdhYmY2MWVjZDI=
@@ -1,5 +1,5 @@
1
1
  module JScrollPane
2
2
  module Rails
3
- VERSION = "2.0.17.4"
3
+ VERSION = "2.0.18"
4
4
  end
5
5
  end
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * jScrollPane - v2.0.17 - 2013-08-17
2
+ * jScrollPane - v2.0.18 - 2013-10-23
3
3
  * http://jscrollpane.kelvinluck.com/
4
4
  *
5
5
  * Copyright (c) 2013 Kelvin Luck
@@ -8,7 +8,7 @@
8
8
 
9
9
  // Script: jScrollPane - cross browser customisable scrollbars
10
10
  //
11
- // *Version: 2.0.17, Last updated: 2013-08-17*
11
+ // *Version: 2.0.18, Last updated: 2013-10-23*
12
12
  //
13
13
  // Project Home - http://jscrollpane.kelvinluck.com/
14
14
  // GitHub - http://github.com/vitch/jScrollPane
@@ -39,6 +39,7 @@
39
39
  //
40
40
  // About: Release History
41
41
  //
42
+ // 2.0.18 - (2013-10-23) Fix for issue with gutters and scrollToElement (thanks @Dubiy)
42
43
  // 2.0.17 - (2013-08-17) Working correctly when box-sizing is set to border-box (thanks @pieht)
43
44
  // 2.0.16 - (2013-07-30) Resetting left position when scroll is removed. Fixes #189
44
45
  // 2.0.15 - (2013-07-29) Fixed issue with scrollToElement where the destX and destY are undefined.
@@ -829,9 +830,9 @@
829
830
  viewportTop = contentPositionY();
830
831
  maxVisibleEleTop = viewportTop + paneHeight;
831
832
  if (eleTop < viewportTop || stickToTop) { // element is above viewport
832
- destY = eleTop - settings.verticalGutter;
833
+ destY = eleTop - settings.horizontalGutter;
833
834
  } else if (eleTop + eleHeight > maxVisibleEleTop) { // element is below viewport
834
- destY = eleTop - paneHeight + eleHeight + settings.verticalGutter;
835
+ destY = eleTop - paneHeight + eleHeight + settings.horizontalGutter;
835
836
  }
836
837
  if (!isNaN(destY)) {
837
838
  scrollToY(destY, animate);
@@ -1443,5 +1444,4 @@
1443
1444
  scrollPagePercent : .8 // Percent of visible area scrolled when pageUp/Down or track area pressed
1444
1445
  };
1445
1446
 
1446
- })(jQuery,this);
1447
-
1447
+ })(jQuery,this);
@@ -36,13 +36,6 @@
36
36
  background: red;
37
37
  }
38
38
 
39
- .jspVerticalBar *,
40
- .jspHorizontalBar *
41
- {
42
- margin: 0;
43
- padding: 0;
44
- }
45
-
46
39
  .jspCap
47
40
  {
48
41
  display: none;
@@ -81,6 +74,8 @@
81
74
  text-indent: -20000px;
82
75
  display: block;
83
76
  cursor: pointer;
77
+ padding: 0;
78
+ margin: 0;
84
79
  }
85
80
 
86
81
  .jspArrow.jspDisabled
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jscrollpane-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.17.4
4
+ version: 2.0.18
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ilya Bodrov
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-10-24 00:00:00.000000000 Z
11
+ date: 2013-10-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: railties