If the height is small even if scrolling is enabled, it should be elide. 15/192915/5
authorJoogab Yun <joogab.yun@samsung.com>
Mon, 12 Nov 2018 07:42:09 +0000 (16:42 +0900)
committerJoogab Yun <joogab.yun@samsung.com>
Sat, 17 Nov 2018 00:56:13 +0000 (09:56 +0900)
commit74f7af1b08ce65dde5959d22b2d533cbc64b9d2e
tree32a651e9f30bed2567ebc72d47efea94dad25bf7
parent8a313bb71bb0d1b443e2b5d7f383155433d385e0
If the height is small even if scrolling is enabled, it should be elide.

If you do not want to elide, you can use the TextLabel :: Property ::
ELLIPSIS property.
ex) textLabel.SetProperty(TextLabel::Property::ELLIPSIS, false);

sample)
    TextLabel textLabel;
    textLabel = TextLabel::New( "The certificates can be created,
edited, removed, and set as active. The active certificates are used
when packaging your application.");

    textLabel.SetSize( 400, 31 );
    textLabel.SetPosition(10, 390);
    textLabel.SetParentOrigin(ParentOrigin::TOP_LEFT);
    textLabel.SetAnchorPoint(AnchorPoint::TOP_LEFT);
    textLabel.SetProperty(TextLabel::Property::ENABLE_AUTO_SCROLL,
true);
    textLabel.SetProperty(TextLabel::Property::AUTO_SCROLL_LOOP_COUNT,
0);
    textLabel.SetProperty(TextLabel::Property::AUTO_SCROLL_GAP, 50);
    textLabel.SetProperty(TextLabel::Property::AUTO_SCROLL_SPEED, 50);
    textLabel.SetProperty(TextLabel::Property::AUTO_SCROLL_LOOP_DELAY,
1);
    textLabel.SetProperty(TextLabel::Property::POINT_SIZE, 30);
    textLabel.SetProperty( TextLabel::Property::TEXT_COLOR, Color::RED
);

Change-Id: I1b685226cb24aa1d1f1d0ee490db52439f49ccb3
automated-tests/src/dali-toolkit-internal/dali-toolkit-test-utils/toolkit-text-utils.cpp
automated-tests/src/dali-toolkit-internal/utc-Dali-Text-Layout.cpp
automated-tests/src/dali-toolkit/utc-Dali-TextLabel.cpp
dali-toolkit/internal/controls/text-controls/text-label-impl.cpp
dali-toolkit/internal/text/layouts/layout-engine.cpp
dali-toolkit/internal/text/layouts/layout-engine.h
dali-toolkit/internal/text/text-controller.cpp