lundi 28 juin 2021

How to make div which fills 100% of ANT

i have very strange issue. I am trying to make div component to fill 100% height of it's parent ANT component. When i try to do like this nothing happens child div doesnt appears at all.

<Tabs
  defaultActiveKey="messages"
  type="card"
  size="large"
  centered
  onChange={(tabKey) => activeIconHandler(tabKey)}
  style=
 >
   <div style=>
   </div>
 </Tabs>

When i replace Tabs with div everything works fine. This code works great.

<div style= >
  <div style=>
  </div>
</div>

Can anyone please explain how to do it with Tabs i really need it for app design and can't refuse from using it. As well i wen't through all ANT documentation and still don't understand. I am using React and ANT framework.




Aucun commentaire:

Enregistrer un commentaire