Skip to content

Commit

Permalink
Content was shifted when scrollbar was not needed (fix #1)
Browse files Browse the repository at this point in the history
  • Loading branch information
Adrien Grsmto committed Jan 16, 2014
1 parent 46314c9 commit 551bd07
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 3 deletions.
9 changes: 8 additions & 1 deletion dist/simplebar.css
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,14 @@
}
.simplebar .simplebar-scroll-content,
[data-simplebar-direction] .simplebar-scroll-content {
overflow: auto;
overflow-y: scroll;
overflow-x: auto;
}

[data-simplebar-direction="horizontal"] .simplebar-scroll-content,
.simplebar.horizontal .simplebar-scroll-content {
overflow-x: scroll;
overflow-y: auto;
}

.simplebar-track {
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"url" : "http://github.com/grsmto/simplebar.git"
},
"homepage": "https://grsmto.github.io/simplebar/",
"version": "1.1.1",
"version": "1.1.2",
"devDependencies": {
"grunt": "~0.4.1",
"grunt-cli": "~0.1.7",
Expand Down
9 changes: 8 additions & 1 deletion src/simplebar.css
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,14 @@
}
.simplebar .simplebar-scroll-content,
[data-simplebar-direction] .simplebar-scroll-content {
overflow: auto;
overflow-y: scroll;
overflow-x: auto;
}

[data-simplebar-direction="horizontal"] .simplebar-scroll-content,
.simplebar.horizontal .simplebar-scroll-content {
overflow-x: scroll;
overflow-y: auto;
}

.simplebar-track {
Expand Down

0 comments on commit 551bd07

Please sign in to comment.