ionic-framework icon indicating copy to clipboard operation
ionic-framework copied to clipboard

Popover always 280px high

Open PureSpider opened this issue 11 years ago • 6 comments

https://github.com/driftyco/ionic/blob/master/release/css/ionic.css#L4031 This height never gets updated, which leads to a too high popup when only a few items are in it.

My popover template:

<ion-popover-view>
    <ion-content>
        <ion-list>
            <ion-item ng-click="logout()">
                Abmelden
            </ion-item>
        </ion-list>
    </ion-content>
</ion-popover-view>

PureSpider avatar Dec 17 '14 15:12 PureSpider

Related to #1963?

PureSpider avatar Dec 17 '14 15:12 PureSpider

It seems to be by design based, which makes no sense to me. You can easily end up with cut off items...

tomchiverton avatar Mar 02 '15 14:03 tomchiverton

...or a lot of blank space if you don't display "enough" items.

PureSpider avatar Mar 02 '15 14:03 PureSpider

This is a workaround using CSS class popover-fit on <ion-popover-view> element:

.popover.popover-fit {
    height: auto;

    .scroll-content {
        position: relative;
        display: block;
        max-height: $popover-height;
    }
}

But it would be great stuff to improve it in this way: sizing and positioning.

mestremuten avatar Mar 16 '15 15:03 mestremuten

Greetings @PureSpider!

I've closed this issue because my sensors indicated it was old and inactive, and may have already been fixed in recent versions of Ionic. However, if you are still experiencing this issue, please feel free to reopen this issue by creating a new one, and include any examples and other necessary information, so that we can look into it further.

Thank you for allowing me to assist you.

Ionitron avatar Jun 14 '15 16:06 Ionitron

For anyone stumbling here, this still appears to be an 'issue' in v1.1.0 - by issue, I mean the default heigh of a popover view is 280 px. See this comment for some styles for auto sizing ('fit') popup views.

jskrepnek avatar Aug 21 '15 22:08 jskrepnek