Jelajahi Sumber

fixed get width

nikogu 8 tahun lalu
induk
melakukan
20bf326493
1 mengubah file dengan 1 tambahan dan 1 penghapusan
  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>