ionic2-autocomplete
ionic2-autocomplete copied to clipboard
Position absolute not working
Hi, I need to apply position absolute property to the component but I noticed that as soon as I apply it, the autocomplete suggestions become invisible. Any idea what could be wrong?
This is my template:
<ion-content>
<div class="content">
<ion-auto-complete [dataProvider]="autoComplete"></ion-auto-complete>
<div #map id="map"></div>
</div>
</ion-content>
And this is my css:
.ios, .md {
page-home {
div.content {
position: relative;
height: 100%;
}
#map {
height: 100%;
width: 100%;
}
ion-auto-complete {
position: absolute;
top: 10px;
right: 0;
left: 0;
margin: auto;
z-index: 10;
}
}
}
change: ion-auto-complete { position: absolute; top: 10px; right: 0; left: 0; margin: auto; z-index: 10; }
to:
ion-auto-complete ul { position: absolute; top: 10px; right: 0; left: 0; margin: auto; z-index: 10; }