ionic2-autocomplete icon indicating copy to clipboard operation
ionic2-autocomplete copied to clipboard

Position absolute not working

Open lpeppe opened this issue 9 years ago • 1 comments

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;
        }   
    }
}

lpeppe avatar Oct 17 '17 20:10 lpeppe

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; }

rbenzing avatar Aug 23 '18 19:08 rbenzing