Commit f90d7980 authored by Oleg.Korshul's avatar Oleg.Korshul Committed by Alexander.Trofimov

позиция скролла не обновлялась, если уменьшить scrollmax

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@64781 954022d7-b5bf-4e40-9824-e11837661b57
parent 0e226ca1
......@@ -1846,6 +1846,10 @@ ScrollObject.prototype = {
this.paneWidth = this.canvasW - this.arrowPosition * 2;
this.RecalcScroller();
if ( this.isVerticalScroll ) {
if (this.scrollVCurrentY > this.maxScrollY)
this.scrollVCurrentY = this.maxScrollY;
this.scrollToY( this.scrollVCurrentY );
if(this.maxScrollY == 0){
this.canvas.style.display = "none";
......@@ -1855,6 +1859,10 @@ ScrollObject.prototype = {
}
}
else if ( this.isHorizontalScroll ) {
if (this.scrollHCurrentX > this.maxScrollX)
this.scrollHCurrentX = this.maxScrollX;
this.scrollToX( this.scrollHCurrentX );
if(this.maxScrollX == 0){
this.canvas.style.display = "none";
......
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