fix
This commit is contained in:
@@ -12,6 +12,11 @@ let flexible = (designWidth, maxWidth,minWidth) =>{
|
||||
width = getUniversalZoomLevel() * width
|
||||
height = getUniversalZoomLevel() * height
|
||||
maxWidth = maxWidth || 1920;
|
||||
if(width < 1100){
|
||||
document.body.classList.add('ipad')
|
||||
}else{
|
||||
document.body.classList.remove('ipad')
|
||||
}
|
||||
if(width/height>1.98) width = height * 1.98;
|
||||
width > maxWidth && (width = maxWidth);
|
||||
width < minWidth && (width = minWidth);
|
||||
|
||||
Reference in New Issue
Block a user