Ensure TextEdit's text is vertically aligned after resizing its height.
authorMitch Curtis <mitch.curtis@digia.com>
Tue, 11 Mar 2014 10:02:43 +0000 (11:02 +0100)
committerThe Qt Project <gerrit-noreply@qt-project.org>
Thu, 13 Mar 2014 14:26:20 +0000 (15:26 +0100)
commit2cd0b96a269efa96f1f2759980ea207b94a995e2
treea246ea97d3b59821eff03ecdb713e8783cf693bf
parent110c38a8a6fa30ad8e114d26df88fc3c23ec42de
Ensure TextEdit's text is vertically aligned after resizing its height.

The current code only updates the alignment if the width of the
TextEdit changed, but we must also check if the height has changed.

Task-number: QTBUG-36069

[ChangeLog][QtQuick][TextEdit] Fixed TextEdit not vertically aligning
its text after having its height changed.

Change-Id: I0b2d6a7384457ca1018fc9899c82699e8ecfcbd4
Reviewed-by: J-P Nurmi <jpnurmi@digia.com>
src/quick/items/qquicktextedit.cpp
tests/auto/quick/qquicktextedit/tst_qquicktextedit.cpp