1
0
mirror of synced 2025-02-04 06:09:23 +03:00

Fix for random scrolling when using hierarchical data

When using hierarchical data there is a random scroll jump when hovering over select options. The reason is that in the case of hierarchical data the highlightable choices are <ul> and thus their outer height is many pixels (includes the children's height as well). A fix is to make the height calculations by using the the label divs.
This commit is contained in:
nolamesa 2013-03-26 14:49:02 +02:00
parent 545fb8f307
commit 5b0bbfeb7c

View File

@ -1203,7 +1203,7 @@ the specific language governing permissions and limitations under the Apache Lic
return;
}
children = this.findHighlightableChoices();
children = this.findHighlightableChoices().find('.select2-result-label');
child = $(children[index]);