Преглед изворни кода

success to get first tab's offsetWidth

kaori пре 5 година
родитељ
комит
ac9501bff7
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      src/client/js/components/CustomNavigation.jsx

+ 1 - 1
src/client/js/components/CustomNavigation.jsx

@@ -43,7 +43,7 @@ const CustomNavigation = (props) => {
     // const navTabs = tabs;
 
     console.log(`useEffecet ${activeTab}`);
-    console.log('reffff', tabs);
+    console.log('reffff', tabs[activeTab].offsetWidth);
     // console.log('tabs[activeTab].current.props.children', tabs[activeTab].current.props.children[1]);
     // console.log('tabs[activeTab].current', tabs[activeTab].current);
     // console.log(`ref.current = ${nav.current}`);