Commit 9fac1ba4 authored by Dmitry.Shahtanov's avatar Dmitry.Shahtanov Committed by Alexander.Trofimov

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@50298 954022d7-b5bf-4e40-9824-e11837661b57
parent 322f1bbe
......@@ -476,6 +476,7 @@ ScrollObject.prototype = {
if ( this.isHorizontalScroll ) {
this.scrollToX( this.scrollHCurrentX );
}
this._draw();
this._drawArrow();
},
Reinit:function ( settings, pos ) {
......@@ -553,17 +554,23 @@ ScrollObject.prototype = {
return null;
},
_scrollH:function ( that, evt, pos, isTop, isBottom ) {
if ( !this.isHorizontalScroll ) {
if (!this.isHorizontalScroll) {
return;
}
if( that.scrollHCurrentX !== pos){
that.scrollHCurrentX = pos;
evt.scrollD = evt.scrollPositionX = that.scrollHCurrentX;
evt.maxScrollX = that.maxScrollX;
that.scrollHCurrentX = pos;
evt.scrollD = that.scrollHCurrentX;
evt.maxScrollX = that.maxScrollX;
that._draw();
that._drawArrow();
that.handleEvents("onscrollhorizontal", evt);
}
else if(that.scrollHCurrentX === pos && pos > 0 && !this.reinit && !this.moveble && !this.lock){
evt.pos = pos;
that.handleEvents("onscrollHEnd",evt);
}
that._draw();
that._drawArrow();
that.handleEvents( "onscrollhorizontal", evt );
},
scrollByY:function ( delta ) {
if ( !this.isVerticalScroll ) {
......@@ -685,7 +692,7 @@ ScrollObject.prototype = {
this.context.clearRect( 0, 0, this.canvasW, this.canvasH );
},
_draw:function () {
// очистку не нудно делать - если потом рисовать рект такой же
// очистку не нужно делать - если потом рисовать рект такой же
//this._clearContent();
this.context.beginPath();
......
......@@ -2414,7 +2414,7 @@ function CEditorPage(api)
}
if (this.m_oScrollHor_)
this.m_oScrollHor_.Repos(settings, this.m_bIsHorScrollVisible);//unbind("scrollhorizontal")
this.m_oScrollHor_.Repos(settings, this.m_bIsHorScrollVisible);
else {
this.m_oScrollHor_ = new ScrollObject( "id_horizontal_scroll",settings);
this.m_oScrollHor_.onLockMouse = function(evt){
......@@ -2431,7 +2431,7 @@ function CEditorPage(api)
}
if (this.m_oScrollVer_){
this.m_oScrollVer_.Repos(settings);//unbind("scrollvertical")
this.m_oScrollVer_.Repos(settings);
}
else {
this.m_oScrollVer_ = new ScrollObject( "id_vertical_scroll",
......
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