Commit da82a12a authored by Alexander.Trofimov's avatar Alexander.Trofimov Committed by Alexander.Trofimov

Проверка на отрицательные значения для tooltip-а для изменения ширины/высоты

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@56059 954022d7-b5bf-4e40-9824-e11837661b57
parent 7a1534ce
......@@ -3939,6 +3939,8 @@
var x1 = t.cols[col].left - offsetX - this.width_1px;
var h = ctx.getHeight();
var widthPt = (x - x1);
if (0 > widthPt)
widthPt = 0;
ctx.clear();
t._drawSelection();
......@@ -3966,6 +3968,8 @@
var y1 = t.rows[row].top - offsetY - this.height_1px;
var w = ctx.getWidth();
var heightPt = (y - y1);
if (0 > heightPt)
heightPt = 0;
ctx.clear();
t._drawSelection();
......
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