Skip to content

Commit

Permalink
fix: set alignment error when row width is not enough #885
Browse files Browse the repository at this point in the history
  • Loading branch information
Hufe921 committed Nov 11, 2024
1 parent 992e4ed commit c71d99c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/editor/core/draw/Draw.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1795,7 +1795,8 @@ export class Draw {
if (
!curRow.isSurround &&
(preElement?.rowFlex === RowFlex.JUSTIFY ||
(preElement?.rowFlex === RowFlex.ALIGNMENT && isWidthNotEnough))
(preElement?.rowFlex === RowFlex.ALIGNMENT &&
curRow.isWidthNotEnough))
) {
// 忽略换行符及尾部元素间隔设置
const rowElementList =
Expand Down

0 comments on commit c71d99c

Please sign in to comment.