-
Notifications
You must be signed in to change notification settings - Fork 842
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
[EuiComboBox] Misaligned options list #4472
Comments
I think it's more likely that #4301 caused this. That PR moved the vertical scrollbar to a different element which seems that the popover service may have been accounting for. For example: v. 30.4.2 v. 30.5.0 (very next version) |
Hey all, It's been a while but this issue was blocking me from updating Eui, so I tried to study why this happens. Unfortunately(?), I couldn't reliably reproduce this problem. A few observations:
I then tried reverting the scss changes line by line in #4301 and found that having You can try this in the codesandbox I posted, linked here again. Uncomment the |
Took me a while to reproduce at all: only way I can observe the shifting is when the bottom/height of the page is close to but not yet triggering the scrollbar. I believe the popover element added to the bottom of the DOM is triggering the scrollbar, locating the anchor element (which was left-shifted by the scroll bar's appearance), then repositioning the popover to the correct location, removing the scrollbar. Adding combobox_offset.mov |
I see! The scrollbar being the root cause is very interesting, I would never have thought of that. Digging through #4382, I saw kibana having the same problem as well (elastic/kibana/pull/93274). I can help submit a PR when I get some free time (likely by tomorrow) |
Hey,
I recently updated from 30.4.2 to 31.4.0 and noticed the options list of EuiComboBox is misaligned to the left, like so:
It took me a while to replicate this on a codesandbox because it seems that this only happens when certain things are in place.
You can "fix this" by
horizontalPosition="center"
fromEuiPageContent
EuiComboBox
, i.e. reducing the height of the pageI'm assuming it was introduced in #4301, since 30.4.2 didn't have this problem.
Should I work around it or is there an underlying issue?
The text was updated successfully, but these errors were encountered: