jQuery UI Widgets › Forums › Grid › Dropdown height is not recovered after initializing a filtering
This topic contains 1 reply, has 2 voices, and was last updated by ivailo 8 years, 11 months ago.
-
Author
-
Hello team,
I found a couple of issues of dropdownlist with the ‘filterable’ property and the ‘autoDropDownHeight’ property together.
First, the dropdown height can not be recovered from the filtering action.
When I use the ‘filterable’ property at the first time, it works well based on my input.
However, when I close the dropdown, reopen it again and erase my input, it doesn’t recover the height to the original.
Here is the example below,http://jsfiddle.net/klien54/0om7ds24/
In that example, you can reproduce the problem with the procedure below,
1. open the dropdownlist (click it)
2. type ‘a’ on the filter input.
3. you will see it filters list and adjust height automatically. (because of ‘filterable’, ‘autoDropDownHeight’)
4. close the dropdownlist (click outside of it)
5. reopen the dropdownlist (click it again)
6. empty the filter input. (erase the letter ‘a’)
7. you will find the dropdown height is as same as it filtered not displaying any more list. (even it can’t display the bottom line)It seems the ‘autoDropDownHeight’ is not working after initializing the filter input.
Second, ‘autoDropDownHeight’ with ‘filterable’ under ‘enableBrowserBoundsDetection’ property looks somewhat weird.
In the ‘enableBrowserBoundsDetection:true’, when I filter the list on the dropdownlist, it changes the height with blank between the dropdownlist-header and dropdownlist-box.
For better understanding, please take a look at the example below,http://jsfiddle.net/klien54/6pdgfzbt/
The procedure is below,
1. open the dropdownlist (click it)
2. type ‘a’ on filter input.
3. you will see the dropdownlist-box’s height is changed with blank between it and dropdownlist-header.I’m always thankful for your great library.
Hopefully, I can have your opinion of these issues as always.
Thanks in advance.Best regards,
klien54Hi klien54,
Thanks for the feedback.
We will consider this behavior.Best Regards,
Ivailo IvanovjQWidgets Team
http://www.jqwidgets.com -
AuthorPosts
You must be logged in to reply to this topic.