use auto_position to position selectize dropdown #14160
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
Position selectize dropdown above/below the field depending on how much space there’s left in the window.
The issue was originally fixed with the custom code in
4.4.6
as theauto_position
plugin didn’t seem to do the trick back then. It looks like this broke again in 4.5.0, but now theauto_position
plugin works as expected, so using it instead of the custom code.Before screenshots are in the issue.
After screenshots:
![Screenshot 2024-01-18 at 15 34 55](https://private-user-images.githubusercontent.com/4500340/297799019-faad6a0a-c76a-4a4c-be9f-15d735f756b1.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzk0NzY0ODUsIm5iZiI6MTczOTQ3NjE4NSwicGF0aCI6Ii80NTAwMzQwLzI5Nzc5OTAxOS1mYWFkNmEwYS1jNzZhLTRhNGMtYmU5Zi0xNWQ3MzVmNzU2YjEucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI1MDIxMyUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNTAyMTNUMTk0OTQ1WiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9NGRkN2MwMTY2ZTBhNWEwMWU0YWYwMzU5MjRkMGFlYzJiNjM0ODhkYTczNzdhNGY1ZDRkYTY4OGQ4OGI5N2RjMyZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QifQ.wRvYMIBzvMWo3ztjzOEg7M5Tei6vkYfSP-nevKLCwXo)
![Screenshot 2024-01-18 at 15 43 50](https://private-user-images.githubusercontent.com/4500340/297799280-b8d4e851-a466-4ef2-b5ff-c680fe870dc3.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzk0NzY0ODUsIm5iZiI6MTczOTQ3NjE4NSwicGF0aCI6Ii80NTAwMzQwLzI5Nzc5OTI4MC1iOGQ0ZTg1MS1hNDY2LTRlZjItYjVmZi1jNjgwZmU4NzBkYzMucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI1MDIxMyUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNTAyMTNUMTk0OTQ1WiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9YjJmNzk0ZWE4NzQwZGRlODQ3YmUyZjUwOWVmZGFhMzI1MDVmZWZmZGMyOWViOTA2YTM3OGUzMmJiN2UzNTk3OSZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QifQ.jts4cespGZLYRm5Oj5A1SwsYloyTZnQSv2m8aIzFC3c)
Related issues
#14159