Przeglądaj źródła

fixed get width

nikogu 8 lat temu
rodzic
commit
20bf326493
1 zmienionych plików z 1 dodań i 1 usunięć
  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>