ソースを参照

fixed get width

nikogu 8 年 前
コミット
20bf326493
1 ファイル変更1 行追加1 行削除
  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>