Skip to content

Commit

Permalink
Merge tag 'FixNotDefinedVariables' into develop
Browse files Browse the repository at this point in the history
Fix issue #13
  • Loading branch information
Wikiki committed Mar 5, 2018
2 parents a359e09 + f7532f3 commit 3ba506a
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 8 deletions.
5 changes: 2 additions & 3 deletions dist/bulma-slider.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,11 @@ function findOutputForSlider(element) {

function getSliderOutputPosition(slider) {
// Update output position
var newPlace,
minValue;
var newPlace, minValue;

var style = window.getComputedStyle(slider, null);
// Measure width of range input
sliderWidth = parseInt(style.getPropertyValue('width'), 10);
var sliderWidth = parseInt(style.getPropertyValue('width'), 10);

// Figure out placement percentage between left and right of input
if (!slider.getAttribute('min')) {
Expand Down
4 changes: 2 additions & 2 deletions dist/bulma-slider.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 2 additions & 3 deletions src/extension.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,11 @@ function findOutputForSlider(element) {

function getSliderOutputPosition(slider) {
// Update output position
var newPlace,
minValue;
var newPlace, minValue;

var style = window.getComputedStyle(slider, null);
// Measure width of range input
sliderWidth = parseInt(style.getPropertyValue('width'), 10);
var sliderWidth = parseInt(style.getPropertyValue('width'), 10);

// Figure out placement percentage between left and right of input
if (!slider.getAttribute('min')) {
Expand Down

0 comments on commit 3ba506a

Please sign in to comment.