Commit d667fd0b authored by Anna.Pavlova's avatar Anna.Pavlova Committed by Alexander.Trofimov

(к предыдущей заливке)

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@55395 954022d7-b5bf-4e40-9824-e11837661b57
parent a552ba14
...@@ -960,11 +960,6 @@ ParaMath.prototype = ...@@ -960,11 +960,6 @@ ParaMath.prototype =
{ {
// TODO: ParaMath.Selection_Draw_Range // TODO: ParaMath.Selection_Draw_Range
var SelectH = SelectionDraw.H,
SelectStartY = SelectionDraw.StartY;
//this.Root.Selection_DrawRange(SelectionDraw);
var result = this.GetSelectContent(); var result = this.GetSelectContent();
var Start = result.Start, var Start = result.Start,
...@@ -972,30 +967,26 @@ ParaMath.prototype = ...@@ -972,30 +967,26 @@ ParaMath.prototype =
oCont = result.Content; oCont = result.Content;
SelectionDraw.StartX += oCont.pos.x + oCont.WidthToElement[Start]; SelectionDraw.StartX += oCont.pos.x + oCont.WidthToElement[Start];
//SelectionDraw.StartY = oCont.pos.y + oCont.Composition.absPos.y;
SelectionDraw.StartY += oCont.pos.y;
if(Start == End) if(Start == End)
oCont.content[Start].Selection_DrawRange(0, 0, SelectionDraw); oCont.content[Start].Selection_DrawRange(0, 0, SelectionDraw);
else else
{ {
oCont.content[Start].Selection_DrawRange(0, 0, SelectionDraw); oCont.content[Start].Selection_DrawRange(0, 0, SelectionDraw);
//SelectionDraw.FindStart = false;
SelectionDraw.W += oCont.WidthToElement[End] - oCont.WidthToElement[Start + 1]; // startPos < endPos ! SelectionDraw.W += oCont.WidthToElement[End] - oCont.WidthToElement[Start + 1]; // startPos < endPos !
oCont.content[End].Selection_DrawRange(0,0, SelectionDraw); oCont.content[End].Selection_DrawRange(0,0, SelectionDraw);
} }
if(!oCont.bRoot)
{
SelectionDraw.StartY += oCont.pos.y;
SelectionDraw.H = oCont.size.height; SelectionDraw.H = oCont.size.height;
}
/*if(this.Root.selectUse())
{
SelectionDraw.H = SelectH;
SelectionDraw.StartY = SelectStartY;
}*/
} }
else else
{ {
......
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