X-Git-Url: http://review.tizen.org/git/?p=platform%2Fcore%2Fuifw%2Fdali-toolkit.git;a=blobdiff_plain;f=dali-toolkit%2Finternal%2Fcontrols%2Ftext-controls%2Ftext-editor-impl.cpp;h=77974d57a6417895313ed44afec00ee07a0ce128;hp=a75d7031ac92bf8c37dc46344cc6db0b07e32a9d;hb=2ef1ec2dc06370b206f95db44c0a59259ce2f7d1;hpb=a455f2fbd87ecda74aa084741cc8666db0cf7e43 diff --git a/dali-toolkit/internal/controls/text-controls/text-editor-impl.cpp b/dali-toolkit/internal/controls/text-controls/text-editor-impl.cpp index a75d703..77974d5 100644 --- a/dali-toolkit/internal/controls/text-controls/text-editor-impl.cpp +++ b/dali-toolkit/internal/controls/text-controls/text-editor-impl.cpp @@ -511,8 +511,14 @@ void TextEditor::SetProperty( BaseObject* object, Property::Index index, const P { if( impl.mController ) { + + // The line spacing isn't supported by the TextEditor. Since it's supported + // by the TextLabel for now it must be ignored. The property is being shadowed + // locally so its value isn't affected. const float lineSpacing = value.Get(); - impl.mController->SetDefaultLineSpacing( lineSpacing ); + impl.mLineSpacing = lineSpacing; + // set it to 0.0 due to missing implementation + impl.mController->SetDefaultLineSpacing( 0.0f ); impl.mRenderer.Reset(); } break; @@ -973,7 +979,9 @@ Property::Value TextEditor::GetProperty( BaseObject* object, Property::Index ind { if( impl.mController ) { - value = impl.mController->GetDefaultLineSpacing(); + // LINE_SPACING isn't implemented for the TextEditor. Returning + // only shadowed value, not the real one. + value = impl.mLineSpacing; } break; } @@ -1799,6 +1807,7 @@ TextEditor::TextEditor() mIdleCallback( NULL ), mAlignmentOffset( 0.f ), mScrollAnimationDuration( 0.f ), + mLineSpacing( 0.f ), mRenderingBackend( DEFAULT_RENDERING_BACKEND ), mHasBeenStaged( false ), mScrollAnimationEnabled( false ),