https://bugs.kde.org/show_bug.cgi?id=262210


Volker Krause <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED




--- Comment #3 from Volker Krause <vkrause kde org>  2011-01-06 16:45:48 ---
commit d306d21f011de10a55fedb792b8f3067f920459e
branch master
Author: Volker Krause <[email protected]>
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();

-- 
Configure bugmail: https://bugs.kde.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
_______________________________________________
Kdepim-bugs mailing list
[email protected]
https://mail.kde.org/mailman/listinfo/kdepim-bugs

Reply via email to