eBay / ebayui-core

Collection of Marko widgets; considered to be the core building blocks for all eBay components, pages & apps
https://ebay.github.io/ebayui-core/
Other
217 stars 102 forks source link

Dropdowns: enhance with viewport boundary detection #535

Open hramakumar opened 5 years ago

hramakumar commented 5 years ago

Bug Report

eBayUI Version: 2.0.0-2 and skin 7.0.0-5

Description

when info tip has content that goes out og page boundary. it truncates. screenshot_20190205-092444

Workaround

Screenshots

ianmcburnie commented 5 years ago

@seangates I believe we were going to add the logic for this in a future version. Is that correct? If so we can mark this as an enhancement ticket and I can remove the "blocker" label.

PrashantAshok commented 3 years ago

@ianmcburnie - I just had a chat with @agliga regarding this - I am running into this issue where the tooltip or infotip gets cuts off - in this case due to a parent having overflow: hidden. For a workaround, I can hardcoded the overlay position based on some condition.

Screen Shot 2021-01-05 at 4 02 34 PM

Can this bug be prioritized so that component has the logic to adjust whenever it is getting cutoff?

ianmcburnie commented 3 years ago

@PrashantAshok Dealing with hidden overflow is a different issue altogether than viewport boundary though, right?

ianmcburnie commented 3 years ago

Cool looking library found by @PrashantAshok:

https://popper.js.org/

ianmcburnie commented 2 years ago

Here's another: https://www.floating-ui.com/

PrashantAshok commented 2 years ago

that's a nice one - looks like it was written by popper.js folks? And ideally any library that we pick, hopefully should be able to handle #1401 issue as well.

agliga commented 1 year ago

Currently the tour tip is pretty dumb when it comes to positioning. A good solution requires more JS code. Good examples of adaptive positioning are in TippyJS and the good old qTips2.

PrashantAshok commented 1 year ago

Can we please look into prioritizing this issue along with #1401?

ianmcburnie commented 1 year ago

Anything that isn't directly related to Evo and Core4 is not going to be high on our list. We are probably going to have to rely on a fellowship or open source contribution for these two issues.

agliga commented 3 months ago

Will use this issue to track changing dropdowns to use floating ui