[PE] Fix ComboDataView when picker contains groups (animation)
This commit is contained in:
parent
a0ce0f13c7
commit
54482a5021
|
@ -416,6 +416,9 @@ define([
|
||||||
if (forceFill || !me.fieldPicker.store.findWhere({'id': record.get('id')})){
|
if (forceFill || !me.fieldPicker.store.findWhere({'id': record.get('id')})){
|
||||||
if (me.itemMarginLeft===undefined) {
|
if (me.itemMarginLeft===undefined) {
|
||||||
var div = $($(this.menuPicker.el).find('.inner > div:not(.grouped-data):not(.ps-scrollbar-x-rail):not(.ps-scrollbar-y-rail)')[0]);
|
var div = $($(this.menuPicker.el).find('.inner > div:not(.grouped-data):not(.ps-scrollbar-x-rail):not(.ps-scrollbar-y-rail)')[0]);
|
||||||
|
if (!div || div.length<1) { // try to find items in groups
|
||||||
|
div = $($(this.menuPicker.el).find('.inner .group-items-container > div:not(.grouped-data):not(.ps-scrollbar-x-rail):not(.ps-scrollbar-y-rail)')[0]);
|
||||||
|
}
|
||||||
if (div.length > 0) {
|
if (div.length > 0) {
|
||||||
me.itemMarginLeft = parseInt(div.css('margin-left'));
|
me.itemMarginLeft = parseInt(div.css('margin-left'));
|
||||||
me.itemMarginRight = parseInt(div.css('margin-right'));
|
me.itemMarginRight = parseInt(div.css('margin-right'));
|
||||||
|
|
Loading…
Reference in a new issue