* Use case:
- A TextField with the vertical alignment set to CENTER.
- Add some text. It's correctly aligned.
- Remove some text with the back space. It aligns the text to the TOP
Change-Id: I5c8c6f2bd81d8f78ba5ec2835c1e55531cb99a77
Signed-off-by: Victor Cebollada <v.cebollada@samsung.com>
void Controller::Impl::ClampVerticalScroll( const Vector2& layoutSize )
{
+ if( LayoutEngine::SINGLE_LINE_BOX == mLayoutEngine.GetLayout() )
+ {
+ // Nothing to do if the text is single line.
+ return;
+ }
+
// Clamp between -space & 0.
if( layoutSize.height > mVisualModel->mControlSize.height )
{