Issue 2442 minor fix.

git-svn-id: http://xe-core.googlecode.com/svn/branches/maserati@11218 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
ChanMyeong 2012-09-12 09:50:57 +00:00
parent 3ef0efd139
commit 4ab49a0f7f
2 changed files with 10 additions and 6 deletions

View file

@ -22,12 +22,14 @@ jQuery(function($){
$xGnb.height('auto').height($xBody.height()); $xGnb.height('auto').height($xBody.height());
} else { // Less than 1024 } else { // Less than 1024
$xGnb.height('auto'); $xGnb.height('auto');
}
if($(window).width() < 1024 || $(window).width() > 1260){
$xBody.removeClass('wide'); $xBody.removeClass('wide');
} }
},100); }, 100);
}).resize(); }).resize();
// Trigger for GNB height resize // Trigger for GNB height resize
$($xBody, $xContent, $xGnb).bind('click mouseenter mouseleave focusin focusout', function(){ $($xBody, $xContent, $xGnb).bind('click mouseover mouseout focus blur', function(){
$(window).resize(); $(window).resize();
}); });
// GNB Click toggle // GNB Click toggle
@ -78,7 +80,7 @@ jQuery(function($){
} }
}) })
.mouseleave(function(){ // Mouseleave .mouseleave(function(){ // Mouseleave
if($(window).width() >= 1024){ if($(window).width() >= 1024 && $(window).width() < 1260){
$xBody.addClass('wide'); $xBody.addClass('wide');
contentBugFix(); contentBugFix();
} }

View file

@ -22,12 +22,14 @@ jQuery(function($){
$xGnb.height('auto').height($xBody.height()); $xGnb.height('auto').height($xBody.height());
} else { // Less than 1024 } else { // Less than 1024
$xGnb.height('auto'); $xGnb.height('auto');
}
if($(window).width() < 1024 || $(window).width() > 1260){
$xBody.removeClass('wide'); $xBody.removeClass('wide');
} }
},100); }, 100);
}).resize(); }).resize();
// Trigger for GNB height resize // Trigger for GNB height resize
$($xBody, $xContent, $xGnb).bind('click mouseenter mouseleave focusin focusout', function(){ $($xBody, $xContent, $xGnb).bind('click mouseover mouseout focus blur', function(){
$(window).resize(); $(window).resize();
}); });
// GNB Click toggle // GNB Click toggle
@ -78,7 +80,7 @@ jQuery(function($){
} }
}) })
.mouseleave(function(){ // Mouseleave .mouseleave(function(){ // Mouseleave
if($(window).width() >= 1024){ if($(window).width() >= 1024 && $(window).width() < 1260){
$xBody.addClass('wide'); $xBody.addClass('wide');
contentBugFix(); contentBugFix();
} }