Explorar o código

fixed get width

nikogu %!s(int64=8) %!d(string=hai) anos
pai
achega
20bf326493
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      src/routes/Profile/AdvancedProfile.js

+ 1 - 1
src/routes/Profile/AdvancedProfile.js

@@ -11,7 +11,7 @@ import styles from './AdvancedProfile.less';
 const { Step } = Steps;
 const { Description } = DescriptionList;
 
-const getWindowWidth = () => (window.innerWidth || document.documentElement.documentElement);
+const getWindowWidth = () => (window.innerWidth || document.documentElement.clientWidth);
 
 const menu = (
   <Menu>