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=3f0cf0d11c88f04b1c3d0490a83825e6579f0dbb;hb=e82c3165d7d7eeaa8cd8c911ab73b1ed2f46ddf4;hpb=ebb05c83defab9c07a991ea2f102085ecea3709d 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 3f0cf0d..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 )