-
-
Notifications
You must be signed in to change notification settings - Fork 32.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[AutoComplete] Popover top value inconsistently calculated #2725
Comments
It seems to be an issue with how the values from In the instances where the offset is correct (e.i, not overlapping), {
bottom: 0
center: 0
left: 0
middle: 0
right: 0
top: 0
} and if (targetPosition.top < 0 || targetPosition.top + target.bottom > window.innerHeight) {
// Update logic and stuff
} Since But, in the instances where it overlaps, {
bottom: 879
center: 439.5
left: 0
middle: 128
right: 256
top: 0
} Where So since the |
This issue is, of course, resolved if |
This is a very odd and moody bug. Thanks for the detailed report 👍 👍 We'll look into it. although a PR is also welcome 😁 😁 |
Do you think setting |
I'm not sure. I wan't around when this component was being written. @oliviertassinari Can you take the lead on this one? |
@chrismcv Should be the best in place to answers this 😁 |
Hi, I want to point out a related problem. When the keyboard is open on mobile (i.e. screen height is limited), the Popover will also cover the input. Setting |
@oliviertassinari @chrismcv @alitaheri any word on this? |
@oliviertassinari @chrismcv @alitaheri sorry to keep pestering you on this, but we'd like to get this taken care of before pushing our project to production. Can I can an update here? Does my proposed fix sound reasonable? |
@aweary I'd say make that PR for now so we can evaluate the effects. it it's a breaking change we'll ease into it. otherwise we'll merge. Either way, you can always use your own fork for the production. at least for now. |
Thanks @alitaheri I'll get a PR going. Forking would have been a last ditch option, but we'd rather support the project then fork it. Thanks for the response. |
Your approach is appreciated 👍 Thanks for the PR 😁 |
fixed by #3620 |
This
<AutoComplete>
instance is inside a<ToolbarGroup>
. Thetop
property seems to either be rendered at70
or0
, depending on its mood I guess.This is with the latest
0.14.0
release.The text was updated successfully, but these errors were encountered: