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

[PopOver height] in beta 11, the popover height is fixed

Open sjtufjh opened this issue 12 years ago • 5 comments

http://codepen.io/anon/pen/Bhgpd

sjtufjh avatar Aug 10 '14 06:08 sjtufjh

+1 I'm excited to use popovers, but can't ship an app with them as-is

hbmartin avatar Aug 11 '14 01:08 hbmartin

+1 It would be nice to have some sort of positioning options as well

jansent avatar Aug 11 '14 17:08 jansent

You can style the popovers however you'd like.

http://jsbin.com/piziba/1/edit?html,css,output

.popover {
  height: 300px;
  width: 150px;
}

http://jsbin.com/piziba/2/edit

.popover {
  height: 300px;
  width: 150px;
  border: 1px dashed #333;
}

calendee avatar Aug 12 '14 00:08 calendee

Hey guys, yes popover's dimensions can be changes and customized by adding a new class to ion-popover-view.

Going to close this for now

mhartington avatar Aug 12 '14 18:08 mhartington

It's a bad solution, because I have to set the height of popover in each View that use a popover. Heigh auto is the HTML natural behavior.

Here is simple solution by weeman:

http://forum.ionicframework.com/t/popover-sizing/8251/8

   ion-popover-view {
  height: auto !important;
}

ion-popover-view ion-content {
  position: relative !important;
}

.platform-android ion-popover-view {
  margin-top: 10px !important;
}

Guys update this feature.

EricDosReis avatar Jul 28 '15 22:07 EricDosReis