diff options
author | Youngbok Shin <youngb.shin@samsung.com> | 2016-07-11 13:13:38 +0900 |
---|---|---|
committer | Carsten Haitzler (Rasterman) <raster@rasterman.com> | 2016-07-11 13:13:39 +0900 |
commit | 8e93b88175f2c97677fbb40628953bd1a12f3578 (patch) | |
tree | b81fc3f2883a08947f80f500d79834e38e308929 /data/elementary/objects | |
parent | 5b791420ea03d27d6126a8e048491e056008606b (diff) |
edje: update a style when a style is added as class's member
Summary:
If there is no member styles when a text_class is updated,
newly added styles can't be updated.
So, newly added styles as member of text_class should be updated.
@fix
Test Plan:
Test case is included.
1. Run "elementary_test -to "font overlay""
2. Press Next button. Check the font size.
3. Press Prev button.
4. Put font_size as 50
5. Click Apply button.
6. Press Next button. Check the font size is not changed.
Reviewers: cedric, tasn, herdsman, raster
Subscribers: jpeg, z-wony, Blackmole
Differential Revision: https://phab.enlightenment.org/D4125
Diffstat (limited to 'data/elementary/objects')
-rw-r--r-- | data/elementary/objects/test.edc | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/data/elementary/objects/test.edc b/data/elementary/objects/test.edc index 90db73c162..e58a595038 100644 --- a/data/elementary/objects/test.edc +++ b/data/elementary/objects/test.edc | |||
@@ -833,4 +833,31 @@ group { name: "page_layout"; | |||
833 | } | 833 | } |
834 | } | 834 | } |
835 | } | 835 | } |
836 | group { name: "font_overlay_layout"; | ||
837 | styles { | ||
838 | style { name: "test_class_style"; | ||
839 | base: "font=Sans font_size=20 color=#fff text_class=font_overlay_test wrap=mixed"; | ||
840 | } | ||
841 | } | ||
842 | parts { | ||
843 | part { name: "bg"; | ||
844 | type: RECT; | ||
845 | scale: 1; | ||
846 | description { state: "default" 0.0; | ||
847 | min: 400 300; | ||
848 | color: 0 0 0 0; | ||
849 | } | ||
850 | } | ||
851 | part { name: "elm.text"; | ||
852 | type: TEXTBLOCK; | ||
853 | scale: 1; | ||
854 | description { state: "default" 0.0; | ||
855 | fixed: 1 1; | ||
856 | text { | ||
857 | style: "test_class_style"; | ||
858 | } | ||
859 | } | ||
860 | } | ||
861 | } | ||
862 | } | ||
836 | } | 863 | } |