Explorar o código

success to get first tab's offsetWidth

kaori %!s(int64=5) %!d(string=hai) anos
pai
achega
ac9501bff7
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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}`);