Commit aac5185f authored by shds's avatar shds Committed by KirillovIlya

добавлялись ячейки при скролле за ползунок

белая подложка у квадрата автозаполнения
parent 4742b432
......@@ -236,14 +236,14 @@
if (isVert || isHoriz) {
this.handlers.trigger("reinitializeScroll", whichSB, function (vSize, hSize) {
if (isVert) {
vSize = self.vsb.offsetHeight + Math.max( (vSize + 1) * opt.vscrollStep, 1 );
vSize = self.vsb.offsetHeight + Math.max( vSize * opt.vscrollStep, 1 );
// this.m_dScrollY_max = vSize;
self.vsbHSt.height = vSize + "px";
self.vsbApi.endByY = !!endScroll;
self.vsbApi.Reinit(opt, opt.vscrollStep * ws.getFirstVisibleRow(/*allowPane*/true));
}
if (isHoriz) {
hSize = self.hsb.offsetWidth + Math.max( (hSize + 1) * opt.hscrollStep, 1 );
hSize = self.hsb.offsetWidth + Math.max( hSize* opt.hscrollStep, 1 );
// this.m_dScrollX_max = hSize ;
self.hsbApi.endByX = !!endScroll;
self.hsbHSt.width = hSize + "px";
......
......@@ -3945,20 +3945,12 @@
this.fillHandleT = this.rows[cr.r1].top - offsetY + this.rows[cr.r1].height - this.height_1px - this.height_2px;
this.fillHandleB = this.fillHandleT + fillHandleHeight;
ctx.setFillStyle( opt.activeCellBorderColor ).fillRect( this.fillHandleL, this.fillHandleT, this.fillHandleR - this.fillHandleL, this.fillHandleB - this.fillHandleT );
ctx.setFillStyle( opt.activeCellBorderColor2 )
.fillRect( this.fillHandleL - this.width_1px, this.fillHandleT - this.height_1px, this.fillHandleR - this.fillHandleL + this.width_2px, this.fillHandleB - this.fillHandleT + this.height_2px);
ctx.setStrokeStyle( opt.activeCellBorderColor2 ).setLineWidth( 1 ).beginPath();
ctx.setFillStyle( opt.activeCellBorderColor )
.fillRect( this.fillHandleL, this.fillHandleT, this.fillHandleR - this.fillHandleL, this.fillHandleB - this.fillHandleT );
/*TOP*/
ctx.lineHorPrevPx( this.fillHandleL, this.fillHandleT, this.fillHandleR + this.width_1px );
/*BOTTOM*/
ctx.lineHorPrevPx( this.fillHandleL - this.width_1px, this.fillHandleB + this.height_1px, this.fillHandleR + this.width_1px );
/*LEFT*/
ctx.lineVerPrevPx( this.fillHandleL, this.fillHandleT, this.fillHandleB );
/*RIGHT*/
ctx.lineVerPrevPx( this.fillHandleR + this.width_1px, this.fillHandleT, this.fillHandleB );
ctx.stroke();
}
}
}
......
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