fix: table range drawing boundary error

pr675
Hufe921 2 years ago
parent 5f6c5ec8bc
commit 1df98b9359

@ -1851,6 +1851,12 @@ export class Draw {
startIndex !== endIndex &&
startIndex <= index &&
index <= endIndex
) {
const positionContext = this.position.getPositionContext()
// 表格需限定上下文
if (
(!positionContext.isTable && !element.tdId) ||
positionContext.tdId === element.tdId
) {
// 从行尾开始-绘制最小宽度
if (startIndex === index) {
@ -1862,12 +1868,6 @@ export class Draw {
rangeRecord.width += this.options.rangeMinWidth
}
} else {
const positionContext = this.position.getPositionContext()
// 表格需限定上下文
if (
(!positionContext.isTable && !element.tdId) ||
positionContext.tdId === element.tdId
) {
let rangeWidth = metrics.width
// 最小选区宽度
if (rangeWidth === 0 && curRow.elementList.length === 1) {

Loading…
Cancel
Save