bootstrap icon indicating copy to clipboard operation
bootstrap copied to clipboard

Popover placement "top" positioning issue when window is being resized or the orientation changes

Open cloud9amit opened this issue 10 years ago • 5 comments

Hi,

I see an issue with popover top placement when window is re-sized. on small screen devices/window it overlaps the button control used to bring the popover. Also, popover gets misplaced if orientation of the device is changed.

I have added a plunkr for the same. http://plnkr.co/edit/2p3JxVpTH2MACfvhy5Bu?p=preview

Please click on button "D" to reproduce the issue. Go to full screen mode and then resize the window after opening the popover. On small windows it even overlaps the button.

cloud9amit avatar Jan 18 '16 12:01 cloud9amit

@cloud9amit, in this instance, you may want to try popover-placement="auto" so you don't have to worry about this. My other question for you is what you mean by small screen devices. If you mean mobile or tablets, we've basically decided that from a UX perspective, tooltips and popovers don't make sense on non-mouse devices. As such, we've not given that area much love in the way of support.

Please let us know. Thanks.

icfantv avatar Jan 18 '16 15:01 icfantv

popover issue on small devices @icfantv , Yes from small screen devices I meant mobile and tablets where popover positioning is not proper. Same can be replicated by re-sizing browser window on any desktop similar to the size of a mobile device. On mouse supported devices popover works perfectly so no issues with that. My issue was more specifically for mobile devices. You can close the ticket in case mobile devices are not part of your support. attached is an image where popover is overlapping with button control to which it is attached.

Thanks for your support.

cloud9amit avatar Jan 19 '16 07:01 cloud9amit

Thanks for pointing out on popover-placement="auto". I missed that in documentation, sorry on that part. Popover placement is much better after using that. As stated in my previous comment you can close this ticket if there is no support for mobile devices. I will look for some workarounds.

cloud9amit avatar Jan 19 '16 09:01 cloud9amit

@cloud9amit, after speaking to the team, while tooltips and popovers may work on mobile devices, we are not going to support tooltip/popover issues on mobile platforms because we believe (and this was confirmed by speaking to UX engineers) that they do not make sense on mobile devices.

As such, I'm sorry but we will need to close this issue. If you're looking for workaround - take a look at the Tether library.

icfantv avatar Jan 19 '16 17:01 icfantv

@icfantv , thanks for your response. Since we are working on responsive web design which needs to support all platforms so it got carried over from desktop version. I will look for workarounds as suggested by you.

Thanks

cloud9amit avatar Jan 19 '16 18:01 cloud9amit