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-label-impl.cpp;h=a23eef339e814742577b456ae21bad80dcf0a7cc;hp=44bd0ae481ba63f3e387534995a3b2e76cb9f4e5;hb=e82c3165d7d7eeaa8cd8c911ab73b1ed2f46ddf4;hpb=6af7f672f096ad4de44568a48810b509379408e8 diff --git a/dali-toolkit/internal/controls/text-controls/text-label-impl.cpp b/dali-toolkit/internal/controls/text-controls/text-label-impl.cpp index 44bd0ae..a23eef3 100644 --- a/dali-toolkit/internal/controls/text-controls/text-label-impl.cpp +++ b/dali-toolkit/internal/controls/text-controls/text-label-impl.cpp @@ -426,6 +426,10 @@ void TextLabel::OnInitialize() // Use height-for-width negotiation by default self.SetResizePolicy( ResizePolicy::FILL_TO_PARENT, Dimension::WIDTH ); self.SetResizePolicy( ResizePolicy::DIMENSION_DEPENDENCY, Dimension::HEIGHT ); + + // Enable the text ellipsis. + LayoutEngine& engine = mController->GetLayoutEngine(); + engine.SetTextEllipsisEnabled( true ); } void TextLabel::OnStyleChange( Toolkit::StyleManager styleManager, StyleChange change ) @@ -481,6 +485,11 @@ void TextLabel::RequestTextRelayout() RelayoutRequest(); } +void TextLabel::MaxLengthReached() +{ + // Pure Virtual from TextController Interface, only needed when inputting text +} + TextLabel::TextLabel() : Control( ControlBehaviour( REQUIRES_STYLE_CHANGE_SIGNALS ) ), mRenderingBackend( DEFAULT_RENDERING_BACKEND )