star7th / showdoc

ShowDoc is a tool greatly applicable for an IT team to share documents online一个非常适合IT团队的在线API文档、技术文档工具
https://www.showdoc.com.cn
Other
12.19k stars 2.19k forks source link

Reload page at resize event versus hmtl5 video full screen mode #251

Closed githubvvcao closed 6 years ago

githubvvcao commented 6 years ago

same problem as https://stackoverflow.com/questions/24712415/reload-page-at-resize-event-versus-hmtl5-video-full-screen-mode

Public/js/item/show.js

` $(window).resize(function(){ if( isMobile()){ AdaptToMobile(); }

else if($(window).width() < 1000){
    AdaptToMobile();
}else{
    window.location.reload();
}

}); `

star7th commented 6 years ago

It is designed to be so.When the page width changes ,it will reload