Quantcast
Channel: Ionic Forum - Latest topics
Viewing all articles
Browse latest Browse all 70762

How to set the height of a div with Ionic elements properly?

$
0
0

@NiklasMerz wrote:

I have a div which contains Ionic elements. The height of the div is set by an angular animation that’s why I need to use CSS height instead of ngIf. But setting the height to 0px does not hide the content completely.

How can I fix this?

<div style="height: 0px;">
    <ion-list>
      <ion-item>
        <ion-label>TEST</ion-label>
    </ion-item>
    </ion-list>
  </div>

This did work in Ionic v3. I can just hide the text by setting the height to . But this does not work in my component tree.

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 70762

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>