Skip to content

Commit

Permalink
[FIX] Main navigation disappears after change of screen rotation (Pod…
Browse files Browse the repository at this point in the history
…io bug_33)
  • Loading branch information
dmh committed Jul 19, 2016
1 parent 77cf3e2 commit 6adccd8
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions dev/js/main/header/header.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
// Global variables (jshint):

/*global touchSupport*/
/*global isAndroid*/
// =================================

jQuery(function($) {
Expand All @@ -22,11 +23,13 @@ jQuery(function($) {
if ($html.hasClass('mobile-menu-opened')) {
$html.removeClass('mobile-menu-opened');
}
if ($(window).width() < 992 && !$html.hasClass('mobile-menu-opened')) {

if (isAndroid && screen.width < 992 && !$html.hasClass('mobile-menu-opened')) {
$('.js__navigation__items-wrp').hide();
} else if (!isAndroid /* or with 'isIOS' variable instead of '!isAndroid' */ && $(window).width() < 992 && !$html.hasClass('mobile-menu-opened')) {
$('.js__navigation__items-wrp').hide();
} else {
$('.js__navigation__items-wrp').show();

}
};

Expand Down

0 comments on commit 6adccd8

Please sign in to comment.