Commit 4d74cf3e authored by Alexander.Trofimov's avatar Alexander.Trofimov Committed by Alexander.Trofimov

Добавил видимость scroll для selector-а формул.

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@57394 954022d7-b5bf-4e40-9824-e11837661b57
parent a9f05f96
...@@ -85,6 +85,8 @@ ...@@ -85,6 +85,8 @@
this.selectorListJQ = $('#apiPopUpList'); this.selectorListJQ = $('#apiPopUpList');
if (this.selectorListJQ.perfectScrollbar) if (this.selectorListJQ.perfectScrollbar)
this.selectorListJQ.perfectScrollbar(this.scrollOptions); this.selectorListJQ.perfectScrollbar(this.scrollOptions);
this.setAlwaysVisibleY(true);
} }
}; };
PopUpSelector.prototype.show = function (isFormula, arrItems, cellRect) { PopUpSelector.prototype.show = function (isFormula, arrItems, cellRect) {
...@@ -151,9 +153,11 @@ ...@@ -151,9 +153,11 @@
return this.isVisible; return this.isVisible;
}; };
PopUpSelector.prototype._clearList = function () { PopUpSelector.prototype._clearList = function () {
var elem; var i;
while(elem = this.selectorListEl.pop()) for (i = 0; i < this.selectorListEl.length; ++i)
this.selectorList.removeChild(elem); this.selectorList.removeChild(this.selectorListEl[i]);
this.selectorListEl.length = 0;
this.selectElement = null; this.selectElement = null;
this.firstElement = null; this.firstElement = null;
...@@ -254,6 +258,16 @@ ...@@ -254,6 +258,16 @@
} }
}; };
PopUpSelector.prototype.setAlwaysVisibleY = function (flag) {
if (flag) {
$(this.selectorList).find('.ps-scrollbar-y-rail').addClass('always-visible-y');
$(this.selectorList).find('.ps-scrollbar-y').addClass('always-visible-y');
} else {
$(this.selectorList).find('.ps-scrollbar-y-rail').removeClass('always-visible-y');
$(this.selectorList).find('.ps-scrollbar-y').removeClass('always-visible-y');
}
};
/* /*
* Export * Export
* ----------------------------------------------------------------------------- * -----------------------------------------------------------------------------
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment