TextInput: update the baseline offset when vertical alignment changes
authorJ-P Nurmi <jpnurmi@theqtcompany.com>
Tue, 3 Feb 2015 16:26:08 +0000 (17:26 +0100)
committerJ-P Nurmi <jpnurmi@theqtcompany.com>
Tue, 3 Feb 2015 20:32:06 +0000 (20:32 +0000)
Change-Id: I2153e879c7ad8b770d5ca47dac68f994bb171b2d
Reviewed-by: Alan Alpert <aalpert@blackberry.com>
src/quick/items/qquicktextinput.cpp

index a9c6027..c45f3dc 100644 (file)
@@ -578,6 +578,7 @@ void QQuickTextInput::setVAlign(QQuickTextInput::VAlignment alignment)
     emit verticalAlignmentChanged(d->vAlign);
     if (isComponentComplete()) {
         updateCursorRectangle();
+        d->updateBaselineOffset();
     }
 }