mirror of
https://gitee.com/vnotex/vnote.git
synced 2025-07-05 13:59:52 +08:00
bug-fix: fix horizontal scrollbar in wrong case
This commit is contained in:
parent
c59974744e
commit
490a87bb53
@ -519,7 +519,7 @@ void VTextDocumentLayout::layoutBlock(const QTextBlock &p_block)
|
||||
availableWidth = qreal(INT_MAX);
|
||||
}
|
||||
|
||||
availableWidth -= (2 * m_margin + extraMargin + m_cursorMargin);
|
||||
availableWidth -= (2 * m_margin + extraMargin + m_cursorMargin + m_cursorWidth);
|
||||
|
||||
tl->beginLayout();
|
||||
|
||||
@ -651,7 +651,7 @@ QRectF VTextDocumentLayout::blockRectFromTextLayout(const QTextBlock &p_block)
|
||||
}
|
||||
}
|
||||
|
||||
br.adjust(0, 0, m_margin + m_cursorMargin, 0);
|
||||
br.adjust(0, 0, m_margin + m_cursorWidth, 0);
|
||||
|
||||
// Add bottom margin.
|
||||
if (!p_block.next().isValid()) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user