bootstrap-slider-rails 5.2.4 → 5.2.5

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: 0248a460146cb7bfe8f3203df98b94ba0149f532
4
- data.tar.gz: 9c7e637ff342168c58958983392f1b5678643c29
3
+ metadata.gz: 578d3cd5a83995cebdb65a1411bbf0d184a9a951
4
+ data.tar.gz: d5a55c5338b919f48567a5e0d176bba30d92fa31
5
5
  SHA512:
6
- metadata.gz: 90ebbae17c10e909ac9810886548b13c719ea61e7df626482d0d766df45d553b27be21f177ae98f7186ded381745a08adc5af382fcb419fd6118a278a8d65ee0
7
- data.tar.gz: 7205a68a9ff402ac331c6376f9377d715e3292f2a54c7e726b27717409b89a3cbf18d2b47b4d904682f123ad6325c897959f9c458949cfe65791bb7084032d13
6
+ metadata.gz: b6c9cee1229f1b7a81dcccc172c4146575bae2349c55b97dbec49012bc391704d23b39cbe26412282980be3c8e36f359a6bdba9eddb80fbce09a8df6ab6dd651
7
+ data.tar.gz: 9f09e0d0654e040e87bbeedd44bd6a88b8f0d4019ba3291856053f95674589f4f4e14fbd3790a90c15d50e4c456828b66c2137dfdea92948d87b3d47df145e6e
@@ -1,5 +1,5 @@
1
1
  module BootstrapSlider
2
2
  module Rails
3
- VERSION = '5.2.4'
3
+ VERSION = '5.2.5'
4
4
  end
5
5
  end
@@ -997,7 +997,10 @@
997
997
  if (this.tickLabelContainer) {
998
998
  var extraMargin = 0;
999
999
  if (this.options.ticks_positions.length === 0) {
1000
- this.tickLabelContainer.style[styleMargin] = -labelSize/2 + 'px';
1000
+ if (this.options.orientation !== 'vertical') {
1001
+ this.tickLabelContainer.style[styleMargin] = -labelSize/2 + 'px';
1002
+ }
1003
+
1001
1004
  extraMargin = this.tickLabelContainer.offsetHeight;
1002
1005
  } else {
1003
1006
  /* Chidren are position absolute, calculate height by finding the max offsetHeight of a child */
@@ -1036,10 +1039,13 @@
1036
1039
  if (this.tickLabels[i]) {
1037
1040
  this.tickLabels[i].style[styleSize] = labelSize + 'px';
1038
1041
 
1039
- if (this.options.ticks_positions[i] !== undefined) {
1042
+ if (this.options.orientation !== 'vertical' && this.options.ticks_positions[i] !== undefined) {
1040
1043
  this.tickLabels[i].style.position = 'absolute';
1041
1044
  this.tickLabels[i].style[this.stylePos] = percentage + '%';
1042
1045
  this.tickLabels[i].style[styleMargin] = -labelSize/2 + 'px';
1046
+ } else if (this.options.orientation === 'vertical') {
1047
+ this.tickLabels[i].style['marginLeft'] = this.sliderElem.offsetWidth + 'px';
1048
+ this.tickLabelContainer.style['marginTop'] = this.sliderElem.offsetWidth / 2 * -1 + 'px';
1043
1049
  }
1044
1050
  }
1045
1051
  }
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bootstrap-slider-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 5.2.4
4
+ version: 5.2.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Pedr Browne
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-10-15 00:00:00.000000000 Z
11
+ date: 2015-11-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: railties