mirror of
https://github.com/ONLYOFFICE/sdkjs.git
synced 2026-04-07 14:09:12 +08:00
Исправлен баг с движением границ таблицы, когда курсор находится вне данной таблицы.
git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@47158 954022d7-b5bf-4e40-9824-e11837661b57
This commit is contained in:
committed by
Alexander.Trofimov
parent
a85d4cafd5
commit
81ae8a4a0a
@ -958,7 +958,7 @@ CDocument.prototype =
|
||||
// в колонтитуле всегда можно проверять текущую позицию
|
||||
}
|
||||
|
||||
if ( true === this.NeedUpdateTarget && true === bFlag )
|
||||
if ( true === this.NeedUpdateTarget && true === bFlag && false === this.Selection_Is_TableBorderMove() )
|
||||
{
|
||||
this.Document_UpdateRulersState();
|
||||
this.RecalculateCurPos();
|
||||
@ -5614,7 +5614,7 @@ CDocument.prototype =
|
||||
if ( selectionflag_Numbering == this.Selection.Flag )
|
||||
return false;
|
||||
// Обрабатываем движение границы у таблиц
|
||||
else if ( null != this.Selection.Data && true === this.Selection.Data.TableBorder && type_Table == this.Content[this.Selection.Data.Pos].GetType() )
|
||||
else if ( true === this.Selection_Is_TableBorderMove() )
|
||||
return false;
|
||||
else
|
||||
{
|
||||
@ -5932,7 +5932,7 @@ CDocument.prototype =
|
||||
}
|
||||
|
||||
// Обрабатываем движение границы у таблиц
|
||||
if ( null != this.Selection.Data && true === this.Selection.Data.TableBorder && type_Table == this.Content[this.Selection.Data.Pos].GetType() )
|
||||
if ( true === this.Selection_Is_TableBorderMove() )
|
||||
{
|
||||
var Item = this.Content[this.Selection.Data.Pos];
|
||||
Item.Selection_SetEnd( X, Y, this.CurPage, MouseEvent, true );
|
||||
@ -6182,6 +6182,14 @@ CDocument.prototype =
|
||||
return false;
|
||||
},
|
||||
|
||||
Selection_Is_TableBorderMove : function()
|
||||
{
|
||||
if ( null != this.Selection.Data && true === this.Selection.Data.TableBorder && type_Table == this.Content[this.Selection.Data.Pos].GetType() )
|
||||
return true;
|
||||
|
||||
return false;
|
||||
},
|
||||
|
||||
// Проверяем попали ли мы в селект
|
||||
Selection_Check : function(X, Y, Page_Abs)
|
||||
{
|
||||
@ -8544,7 +8552,7 @@ CDocument.prototype =
|
||||
this.DrawingDocument.SelectShow();
|
||||
}
|
||||
// Обрабатываем движение границы у таблиц
|
||||
else if ( null != this.Selection.Data && true === this.Selection.Data.TableBorder && type_Table == this.Content[this.Selection.Data.Pos].GetType() )
|
||||
else if ( true === this.Selection_Is_TableBorderMove() )
|
||||
{
|
||||
// Убираем курсор, если он был
|
||||
this.DrawingDocument.TargetEnd();
|
||||
|
||||
Reference in New Issue
Block a user