Skip to content
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

IBX-6718: Missing scroll in language dropdown #934

Merged
merged 1 commit into from
Oct 17, 2023

Conversation

GrabowskiM
Copy link
Contributor

Question Answer
Tickets https://issues.ibexa.co/browse/IBX-6718
Bug fix? yes
New feature? no
BC breaks? no
Tests pass? yes
Doc needed? no
License GPL-2.0

This PR does three things:

  1. Adds scroll to items list (fix to bug reported in issue)
  2. Moves items list above dropdown if lacking space below (< 150px)
  3. recalculates items list position live on scroll site

Checklist:

  • Coding standards ($ composer fix-cs)
  • Ready for Code Review

@GrabowskiM GrabowskiM force-pushed the IBX-6718-react-dropdown-scroll-height-fix branch from 6a0e027 to e7c4fe0 Compare October 6, 2023 13:57
@sonarcloud
Copy link

sonarcloud bot commented Oct 6, 2023

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

@dew326 dew326 merged commit 80961bc into 4.5 Oct 17, 2023
17 checks passed
@dew326 dew326 deleted the IBX-6718-react-dropdown-scroll-height-fix branch October 17, 2023 10:10
itemsStyles.top = top + height + ITEMS_LIST_WIDGET_MARGIN;
itemsStyles.maxHeight = window.innerHeight - bottom - ITEMS_LIST_SITE_MARGIN;
} else {
const headerContainer = document.querySelector('.ibexa-main-header');
Copy link
Contributor

@tischsoic tischsoic Feb 21, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Note: we were wondering in last few days why ibexa-main-header offsetHeight was introduced so if you also wonder, you can find the explanation in this comment: #1183 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants