Commit 27d47d6b authored by Alexander.Trofimov's avatar Alexander.Trofimov Committed by Alexander.Trofimov

add scrollOptions

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@56083 954022d7-b5bf-4e40-9824-e11837661b57
parent bb996ad8
......@@ -17,6 +17,19 @@
function PopUpSelector(element, handlers) {
this.handlers = new asc_HL(handlers);
this.scrollOptions = {
wheelSpeed : 20,
wheelPropagation : false,
minScrollbarLength : 50,
useBothWheelAxes : false,
useKeyboard : true,
suppressScrollX : false,
suppressScrollY : false,
scrollXMarginOffset : 5,
scrollYMarginOffset : 5,
includePadding : true
};
this.element = element;
this.selector = null;
this.selectorStyle = null;
......@@ -70,7 +83,7 @@
// Для того, чтобы работал scroll
this.selectorListJQ = $('#apiPopUpList');
this.selectorListJQ.perfectScrollbar({minScrollbarLength: 50});
this.selectorListJQ.perfectScrollbar(this.scrollOptions);
}
};
PopUpSelector.prototype.show = function (isFormula, arrItems, cellRect) {
......
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