TopLeft-align messages in the viewport
commitf8f604e4bd3902cd0330dfb3e51bf3b1f00caee4
authorThomas Lübking <thomas.luebking@gmail.com>
Fri, 24 Jul 2015 21:24:03 +0000 (24 23:24 +0200)
committerJan Kundrát <jkt@kde.org>
Sat, 25 Jul 2015 09:02:08 +0000 (25 11:02 +0200)
treeea99ef27f590e68d6f664be769f05dc63e783ad3
parentd903a825eba0b06f7427c219f1c725fa75f9e21e
TopLeft-align messages in the viewport

Our EmbeddeView eventfilter keeps the width
of (not tooo big mails) aligned to the
scrollarea width.
If the viewport is much wider than the scrollarea
(because the header is), the (narrow as the area)
message is centered inside the (wide) viewport
(the default layout alignment)

This way the message shifts out to the right

=> the message is (top-)left aligned, so it's
initially fully visible (because it's usually
not wider than the scrollarea) and only shifts
out to the left ~when~ *if* the user horizontally
scrolls the mail to read the rest of the header

The layout has some margins which will ensure
the mail is not on the far left (or right) even
when the horizontal scrollvalue is 0

Change-Id: I7044722debba15e2c45ab5b3c5f6e98743cde4ac
src/Gui/MessageView.cpp