Skip to content
This repository was archived by the owner on Aug 17, 2020. It is now read-only.

Commit 4430a46

Browse files
committed
v1.0.3
1 parent 4ec0c07 commit 4430a46

File tree

3 files changed

+7
-3
lines changed

3 files changed

+7
-3
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
## 1.0.3
2+
3+
* Fix incorrect condition
4+
15
## 1.0.2
26

37
* Fix missing scrollbar width on simple breakpoint setup

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "vue-provide-responsive",
3-
"version": "1.0.2",
3+
"version": "1.0.3",
44
"description": "Responsive design plugin for Vue using Provide\\Inject",
55
"main": "dist/index.js",
66
"module": "dist/index.es.js",

src/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,10 +29,10 @@ const install = (Vue: any, {
2929
.reduce((acc, key) => {
3030
const breakpoint = breakpoints[key];
3131
const name = 'is' + key.charAt(0).toUpperCase() + key.substring(1); // mobile → isMobile
32-
let value: number, ignoreScrollbar = false;
32+
let value: number;
3333
if (typeof breakpoint === 'object') {
3434
value = breakpoint.value;
35-
if (!ignoreScrollbar) value -= scrollbarWidth;
35+
if (!breakpoint.ignoreScrollbar) value -= scrollbarWidth;
3636
} else {
3737
value = breakpoint - scrollbarWidth;
3838
}

0 commit comments

Comments
 (0)