Skip to content

Commit

Permalink
fix: typo of setting style of scrollPanel
Browse files Browse the repository at this point in the history
  • Loading branch information
wangyi7099 committed Apr 17, 2018
1 parent b338791 commit 1cb3ecb
Show file tree
Hide file tree
Showing 9 changed files with 20 additions and 20 deletions.
4 changes: 2 additions & 2 deletions dist/demo/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@
data: {
ops: {
vuescroll: {
mode: "slide",
mode: "native",
pullRefresh: {
tips: {
beforeDeactive: "Refresh Successfully!"
Expand All @@ -180,7 +180,7 @@
background: "#000"
}
},
dataNums: 500,
dataNums: 100,
reRender: 1,
easings
},
Expand Down
6 changes: 3 additions & 3 deletions dist/vuescroll.common.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* @name: vuescroll 4.1.0
* @name: vuescroll 4.1.1
* @author: (c) 2018-2018 wangyi7099
* @description: A reactive virtual scrollbar based on vue.js 2.X
* @license: MIT
Expand Down Expand Up @@ -2785,7 +2785,7 @@ function createPanel(h, vm) {
} else {
scrollPanelData.style["overflowY"] = vm.vBar.state.size ? "hidden" : "inherit";
}
if (vm.mergedOptions.scrollPanel.scrollinX) {
if (vm.mergedOptions.scrollPanel.scrollingX) {
scrollPanelData.style["overflowX"] = vm.vBar.state.size ? "scroll" : "inherit";
} else {
scrollPanelData.style["overflowX"] = vm.vBar.state.size ? "hidden" : "inherit";
Expand All @@ -2803,7 +2803,7 @@ function createPanel(h, vm) {
// because just hide system bar doesn't work
// for firefox. #10
scrollPanelData.style.marginRight = "-" + gutter + "px";
scrollPanelData.style.marginBottom = "-" + gutter + "px";
// scrollPanelData.style.marginBottom = `-${gutter}px`;
scrollPanelData.style.height = "calc(100% + " + gutter + "px)";
}
// clear legency styles of slide mode...
Expand Down
4 changes: 2 additions & 2 deletions dist/vuescroll.common.min.js

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions dist/vuescroll.esm.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* @name: vuescroll 4.1.0
* @name: vuescroll 4.1.1
* @author: (c) 2018-2018 wangyi7099
* @description: A reactive virtual scrollbar based on vue.js 2.X
* @license: MIT
Expand Down Expand Up @@ -2781,7 +2781,7 @@ function createPanel(h, vm) {
} else {
scrollPanelData.style["overflowY"] = vm.vBar.state.size ? "hidden" : "inherit";
}
if (vm.mergedOptions.scrollPanel.scrollinX) {
if (vm.mergedOptions.scrollPanel.scrollingX) {
scrollPanelData.style["overflowX"] = vm.vBar.state.size ? "scroll" : "inherit";
} else {
scrollPanelData.style["overflowX"] = vm.vBar.state.size ? "hidden" : "inherit";
Expand All @@ -2799,7 +2799,7 @@ function createPanel(h, vm) {
// because just hide system bar doesn't work
// for firefox. #10
scrollPanelData.style.marginRight = "-" + gutter + "px";
scrollPanelData.style.marginBottom = "-" + gutter + "px";
// scrollPanelData.style.marginBottom = `-${gutter}px`;
scrollPanelData.style.height = "calc(100% + " + gutter + "px)";
}
// clear legency styles of slide mode...
Expand Down
4 changes: 2 additions & 2 deletions dist/vuescroll.esm.min.js

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions dist/vuescroll.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* @name: vuescroll 4.1.0
* @name: vuescroll 4.1.1
* @author: (c) 2018-2018 wangyi7099
* @description: A reactive virtual scrollbar based on vue.js 2.X
* @license: MIT
Expand Down Expand Up @@ -2787,7 +2787,7 @@ function createPanel(h, vm) {
} else {
scrollPanelData.style["overflowY"] = vm.vBar.state.size ? "hidden" : "inherit";
}
if (vm.mergedOptions.scrollPanel.scrollinX) {
if (vm.mergedOptions.scrollPanel.scrollingX) {
scrollPanelData.style["overflowX"] = vm.vBar.state.size ? "scroll" : "inherit";
} else {
scrollPanelData.style["overflowX"] = vm.vBar.state.size ? "hidden" : "inherit";
Expand All @@ -2805,7 +2805,7 @@ function createPanel(h, vm) {
// because just hide system bar doesn't work
// for firefox. #10
scrollPanelData.style.marginRight = "-" + gutter + "px";
scrollPanelData.style.marginBottom = "-" + gutter + "px";
// scrollPanelData.style.marginBottom = `-${gutter}px`;
scrollPanelData.style.height = "calc(100% + " + gutter + "px)";
}
// clear legency styles of slide mode...
Expand Down
4 changes: 2 additions & 2 deletions dist/vuescroll.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
"test:cover": "karma start test/karma.conf.js",
"report-coverage": "codecov"
},
"version": "4.1.0",
"version": "4.1.1",
"devDependencies": {
"babel-core": "^6.26.0",
"babel-helper-vue-jsx-merge-props": "^2.0.3",
Expand Down
4 changes: 2 additions & 2 deletions src/components/vuescroll.js
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ function createPanel(h, vm) {
} else {
scrollPanelData.style["overflowY"] = vm.vBar.state.size?"hidden":"inherit";
}
if(vm.mergedOptions.scrollPanel.scrollinX) {
if(vm.mergedOptions.scrollPanel.scrollingX) {
scrollPanelData.style["overflowX"] = vm.vBar.state.size?"scroll":"inherit";
} else {
scrollPanelData.style["overflowX"] = vm.vBar.state.size?"hidden":"inherit";
Expand All @@ -78,7 +78,7 @@ function createPanel(h, vm) {
// because just hide system bar doesn't work
// for firefox. #10
scrollPanelData.style.marginRight = `-${gutter}px`;
scrollPanelData.style.marginBottom = `-${gutter}px`;
// scrollPanelData.style.marginBottom = `-${gutter}px`;
scrollPanelData.style.height = `calc(100% + ${gutter}px)`;
}
// clear legency styles of slide mode...
Expand Down

0 comments on commit 1cb3ecb

Please # to comment.