mirror of
https://github.com/qTox/qTox.git
synced 2024-03-22 14:00:36 +08:00
Text: use ascent rather than height
This commit is contained in:
parent
26718f7147
commit
2003f7c5aa
|
@ -223,7 +223,7 @@ void Text::ensureIntegrity()
|
|||
doc->documentLayout()->update();
|
||||
|
||||
if(doc->firstBlock().layout()->lineCount() > 0)
|
||||
vOffset = doc->firstBlock().layout()->lineAt(0).height();
|
||||
vOffset = doc->firstBlock().layout()->lineAt(0).ascent();
|
||||
|
||||
if(size != idealSize())
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue
Block a user