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

Lookup: minWidth option is not honored #8626

Closed
aaronpikkarainen opened this issue Apr 18, 2024 · 0 comments · Fixed by #8681
Closed

Lookup: minWidth option is not honored #8626

aaronpikkarainen opened this issue Apr 18, 2024 · 0 comments · Fixed by #8681
Assignees
Labels
team: CSD Issues for the CSD team type: bug 🐛 [2] Velocity rating (Fibonacci)

Comments

@aaronpikkarainen
Copy link
Contributor

Describe the bug
The lookup option minWidth is not working. It is being overridden by a static min width of 482 or 400.

To Reproduce

Steps to reproduce the behavior:

  1. Go to https://latest-enterprise.demo.design.infor.com/components/lookup/example-minwidth.html
  2. Open the 3rd lookup - "Paging Small (minWidth=640)"
  3. See that the grid is not at least 640 pixels wide (it is 482 pixels)

Expected behavior
The lookup grid should have at least the width of the minWidth setting.

Version
ids-enterprise: v4.94.2

Screenshots
image

Platform

  • Infor Application/Team Name: CSD
  • Device: Dell laptop
  • OS Version: Windows 11
  • Browser Name: Chrome
  • Browser Version: 123.0.6312.124 (Official Build) (64-bit)

Coding Solution
The bug is on line 223 of lookup.js. We need to add ".settings" to that line, as shown below:
if (!this.settings.minWidth) { this.settings.minWidth = this.settings.options && this.settings.options.paging ? 482 : 400; }

Additional context
After doing the fix, test to make sure #3277 is still okay.

Thank you!

@tmcconechy tmcconechy added type: bug 🐛 [2] Velocity rating (Fibonacci) labels Apr 18, 2024
@AAlviar AAlviar added the team: CSD Issues for the CSD team label Apr 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
team: CSD Issues for the CSD team type: bug 🐛 [2] Velocity rating (Fibonacci)
Projects
No open projects
Development

Successfully merging a pull request may close this issue.

4 participants