Summary: | email composer: main text entry field adds a vertical scrollbar and grows, so the whole screen scrolls | ||
---|---|---|---|
Product: | [Unmaintained] KMail Mobile | Reporter: | Bernhard E. Reiter <bernhard> |
Component: | general | Assignee: | Ludwig Reiter <ludwig.reiter> |
Status: | VERIFIED FIXED | ||
Severity: | normal | CC: | aheinecke |
Priority: | NOR | ||
Version: | unspecified | ||
Target Milestone: | --- | ||
Platform: | Windows CE | ||
OS: | Microsoft Windows CE | ||
Latest Commit: | Version Fixed In: | ||
Sentry Crash Report: |
Description
Bernhard E. Reiter
2011-01-05 17:26:12 UTC
Reproduceable also on the desktop. The growth code probably misses a few pixel and thus the scrollbar is shown. The growth instead of the scrollbar is actually intentional, in order to maximize editing space, so I'd rather fix the scrollbar to not show up. The problem with growing the area is, that with long emails, you cannot reach the buttons easily anymore, so information you would like to see is out of sight and you cannot directly go on. I am not entirely sure, but I have a slight tendency for the scrollbar solution. commit d306d21f011de10a55fedb792b8f3067f920459e branch master Author: Volker Krause <vkrause@kde.org> Date: Thu Jan 6 16:43:11 2011 +0100 Fix off by one error causing the scrollbar to show up. BUG: 262210 diff --git a/mobile/mail/composerautoresizer.cpp b/mobile/mail/composerautoresizer.cpp index 520c040..8f46cf7 100644 --- a/mobile/mail/composerautoresizer.cpp +++ b/mobile/mail/composerautoresizer.cpp @@ -67,8 +67,8 @@ void ComposerAutoResizer::textEditChanged() const QRect contentsRect = mEdit->contentsRect(); // sets the size of the widget dynamically - mEdit->setMinimumHeight( qMax( mMinimumHeight, size.height() + (frameRect.height() - contentsRect.height() - 1) ) ); - mEdit->setMaximumHeight( qMax( mMinimumHeight, size.height() + (frameRect.height() - contentsRect.height() - 1) ) ); + mEdit->setMinimumHeight( qMax( mMinimumHeight, size.height() + (frameRect.height() - contentsRect.height()) ) ); + mEdit->setMaximumHeight( qMax( mMinimumHeight, size.height() + (frameRect.height() - contentsRect.height()) ) ); const QGraphicsProxyWidget *proxy = mEdit->graphicsProxyWidget(); QGraphicsItem *proxyItem = proxy->parentItem(); Kontact Touch Windows CE 20110218 22:55 If a long text is entered, the textfield of the composer grows in the top. So the buttons at the bottom are visible. No scrollbar is displayed. Ok for me Verified. |