Skip to content

Commit

Permalink
Allow set breakpoint width
Browse files Browse the repository at this point in the history
  • Loading branch information
Ryosuke Yokoe committed Feb 18, 2017
1 parent d085143 commit 7635562
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions js/admin.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,8 @@ $.AdminBSB.options = {
scrollWidth: '4px',
scrollAlwaysVisible: false,
scrollBorderRadius: '0',
scrollRailBorderRadius: '0'
scrollRailBorderRadius: '0',
breakpointWidth: '1170'
},
dropdownMenu: {
effectIn: 'fadeIn',
Expand Down Expand Up @@ -135,7 +136,7 @@ $.AdminBSB.leftSideBar = {
});
}

if (width < 1170) {
if (width < $.AdminBSB.options.leftSideBar.breakpointWidth) {
$body.addClass('ls-closed');
$openCloseBar.fadeIn();
}
Expand Down

0 comments on commit 7635562

Please sign in to comment.