summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMontel Laurent <montel@kde.org>2016-09-28 19:20:03 (GMT)
committerMontel Laurent <montel@kde.org>2016-09-28 19:21:49 (GMT)
commit938a6e999c63fdc2d9b5f546a2c4c35efecd2754 (patch)
tree34977ca6968e1535a73f9be954e3e06ed34cbeea
parent892cb8d1a00b216e5215205209c9145650b140ba (diff)
Fix scroll to position
-rw-r--r--messageviewer/src/viewer/viewer_p.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/messageviewer/src/viewer/viewer_p.cpp b/messageviewer/src/viewer/viewer_p.cpp
index 6f2421b..4b5b23a 100644
--- a/messageviewer/src/viewer/viewer_p.cpp
+++ b/messageviewer/src/viewer/viewer_p.cpp
@@ -2160,8 +2160,6 @@ void ViewerPrivate::updateReaderWin()
htmlWriter()->end();
}
- mViewer->scrollToRelativePosition(mViewer->relativePosition());
- mViewer->clearRelativePosition();
mRecursionCountForDisplayMessage--;
}
@@ -2364,6 +2362,8 @@ void ViewerPrivate::injectAttachments()
mViewer->injectAttachments(bind(&ViewerPrivate::attachmentInjectionHtml, this));
toggleFullAddressList();
mViewer->executeCustomRenderingScripts();
+ mViewer->scrollToRelativePosition(mViewer->relativePosition());
+ mViewer->clearRelativePosition();
}
void ViewerPrivate::slotSettingsChanged()