Skip to content

Commit

Permalink
[de] Make text behavior inside the table same as outside the table in…
Browse files Browse the repository at this point in the history
… reading mode
  • Loading branch information
KirillovIlya committed Feb 13, 2024
1 parent 8ea75e2 commit 30daea9
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion word/Editor/Document.js
Original file line number Diff line number Diff line change
Expand Up @@ -16500,7 +16500,7 @@ CDocument.prototype.SetDocumentPrintMode = function()

this.GetAllTables().forEach(function(table)
{
table.RecalcCompiledPr();
table.Recalc_CompiledPr();
});

this.RecalculateFromStart(true);
Expand Down
6 changes: 4 additions & 2 deletions word/Editor/Paragraph.js
Original file line number Diff line number Diff line change
Expand Up @@ -18780,8 +18780,10 @@ Paragraph.prototype.getLayoutFontSizeCoefficient = function()
if (drawing)
return drawing.GetScaleCoefficient();

if (this.IsTableCellContent())
return this.getLayoutScaleCoefficient();
// TODO: В MSWord в режиме readmode не скейлится размер шрифта вне таблицы, а уменьшается вместе с самой таблицой
// у нас пока было решено скейлить текст в таблицах и вне таблицы одинаково
// if (this.IsTableCellContent())
// return this.getLayoutScaleCoefficient();

return logicDocument.GetDocumentLayout().GetFontScale();
};
Expand Down

0 comments on commit 30daea9

Please sign in to comment.