mirror of
https://gitee.com/vnotex/vnote.git
synced 2025-07-06 14:29:54 +08:00
editor: fix leading space on macOS
This commit is contained in:
parent
6e3ab1d0bb
commit
1046d177f2
@ -710,7 +710,8 @@ qreal VTextDocumentLayout::layoutLines(const QTextBlock &p_block,
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
line.setLeadingIncluded(true);
|
// Will introduce extra space on macOS.
|
||||||
|
// line.setLeadingIncluded(true);
|
||||||
line.setLineWidth(p_availableWidth);
|
line.setLineWidth(p_availableWidth);
|
||||||
p_height += m_lineLeading;
|
p_height += m_lineLeading;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user