Skip to content

Commit

Permalink
[Website] change getting window width method
Browse files Browse the repository at this point in the history
  • Loading branch information
bullet03 committed Jul 18, 2022
1 parent 799eed2 commit 001dd37
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion website/www/site/assets/js/page-nav.js
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ $(document).ready(function() {
offset: $("." + idMainContainer).offset()
};

if($(window).width() > CONST.DESKTOP_BREAKPOINT) {
if(window.innerWidth > CONST.DESKTOP_BREAKPOINT) {
$("." + idPageNav).css({
left: mainContainerData.offset.left + mainContainerData.width - CONST.PAGENAV_WIDTH
});
Expand Down

0 comments on commit 001dd37

Please sign in to comment.