Skip to content
Permalink
Browse files

add quick chrome fix. use percentage widths only now

  • Loading branch information...
KevinBatdorf committed Jun 22, 2018
1 parent 9ca91d9 commit d5004842382afecd3eea93ae9813a459ebefd595
Showing with 10 additions and 10 deletions.
  1. +1 −1 Gruntfile.js
  2. +1 −1 bower.json
  3. +1 −1 js/jquery.liquid-slider.min.js
  4. +1 −1 liquidslider.jquery.json
  5. +1 −1 package-lock.json
  6. +1 −1 package.json
  7. +4 −4 src/js/jquery.liquid-slider.js
@@ -1,7 +1,7 @@
module.exports = function (grunt) {

grunt.initConfig({
version: '2.3.10',
version: '2.3.11',
jshint: {
options: {
browser: true,
@@ -1,6 +1,6 @@
{
"name": "liquidslider",
"version": "2.3.10",
"version": "2.3.11",
"homepage": "http://liquidslider.com",
"authors": [
"Kevin Batdorf <kevin@kevinbatdorf.com>"

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.
@@ -11,7 +11,7 @@
"mobile",
"tabs"
],
"version": "2.3.10",
"version": "2.3.11",
"author": {
"name": "Kevin Batdorf",
"url": "http://www.kevinbatdorf.com"

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.
@@ -1,6 +1,6 @@
{
"name": "liquidslider",
"version": "2.3.10",
"version": "2.3.11",
"description": "A Responsive Content Slider",
"main": "js/jquery.liquid-slider.min.js",
"directories": {
@@ -1123,8 +1123,8 @@ LiquidSlider.makeResponsive = function() {
jQuery(_this.sliderId + ' .panel-container').css('width', 100 * _this.panelCountTotal + _this.pSign);
jQuery(_this.sliderId + ' .ls-panel').css('width', 100 / _this.panelCountTotal + _this.pSign);

// convert to pixels
jQuery(_this.sliderId + ' .ls-panel').css('width', jQuery(_this.sliderId).outerWidth(true));
// convert to pixels (Probably not needed anymore, and causing issues in chrome)
// jQuery(_this.sliderId + ' .ls-panel').css('width', jQuery(_this.sliderId).outerWidth(true));

// Cache the padding for add/removing arrows
if (_this.options.hideArrowsWhenMobile) {
@@ -1141,8 +1141,8 @@ LiquidSlider.makeResponsive = function() {
_this.resizingTimeout = setTimeout(function() {
var height = (_this.options.autoHeight) ? _this.getHeight() : _this.getHeighestPanel(_this.nextPanel);
_this.adjustHeight(false, height);
// convert to pixels
jQuery(_this.sliderId + ' .ls-panel').css('width', jQuery(_this.sliderId).outerWidth(true));
// convert to pixels (Probably not needed anymore, and causing issues in chrome)
// jQuery(_this.sliderId + ' .ls-panel').css('width', jQuery(_this.sliderId).outerWidth(true));
}, 500);
});
};

0 comments on commit d500484

Please sign in to comment.
You can’t perform that action at this time.