forked from enlightenment/efl
elm_entry: "elm.guide" part should be aligned to "elm.text" part.
Attached test code for guide part. In addition, updated supported part for "guide" in documentation.
This commit is contained in:
parent
19b55ddc65
commit
95cd308e26
|
@ -1026,7 +1026,7 @@ group { name: "elm/entry/base-single/default";
|
||||||
text {
|
text {
|
||||||
style: "entry_single_textblock_guide_style";
|
style: "entry_single_textblock_guide_style";
|
||||||
min: 0 1;
|
min: 0 1;
|
||||||
align: 0.0 0.0;
|
align: 0.0 0.5;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
description { state: "hidden" 0.0;
|
description { state: "hidden" 0.0;
|
||||||
|
@ -1197,7 +1197,7 @@ group { name: "elm/entry/base-password/default";
|
||||||
text {
|
text {
|
||||||
style: "entry_single_textblock_guide_style";
|
style: "entry_single_textblock_guide_style";
|
||||||
min: 0 1;
|
min: 0 1;
|
||||||
align: 0.0 0.0;
|
align: 0.0 0.5;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
description { state: "hidden" 0.0;
|
description { state: "hidden" 0.0;
|
||||||
|
|
|
@ -300,6 +300,17 @@ test_entry_scrolled(void *data __UNUSED__, Evas_Object *obj __UNUSED__, void *ev
|
||||||
evas_object_show(en);
|
evas_object_show(en);
|
||||||
elm_box_pack_end(bx, en);
|
elm_box_pack_end(bx, en);
|
||||||
|
|
||||||
|
/* entry with guide */
|
||||||
|
en = elm_entry_add(win);
|
||||||
|
elm_entry_scrollable_set(en, EINA_TRUE);
|
||||||
|
evas_object_size_hint_weight_set(en, EVAS_HINT_EXPAND, 0.0);
|
||||||
|
evas_object_size_hint_align_set(en, EVAS_HINT_FILL, 0.5);
|
||||||
|
elm_scroller_policy_set(en, ELM_SCROLLER_POLICY_OFF, ELM_SCROLLER_POLICY_OFF);
|
||||||
|
elm_object_part_text_set(en, "guide", "This string is guide");
|
||||||
|
elm_entry_single_line_set(en, EINA_TRUE);
|
||||||
|
evas_object_show(en);
|
||||||
|
elm_box_pack_end(bx, en);
|
||||||
|
|
||||||
/* password entry */
|
/* password entry */
|
||||||
en = elm_entry_add(win);
|
en = elm_entry_add(win);
|
||||||
elm_entry_scrollable_set(en, EINA_TRUE);
|
elm_entry_scrollable_set(en, EINA_TRUE);
|
||||||
|
|
|
@ -249,6 +249,7 @@
|
||||||
*
|
*
|
||||||
* Default text parts of the entry that you can use for are:
|
* Default text parts of the entry that you can use for are:
|
||||||
* @li "default" - text of the entry
|
* @li "default" - text of the entry
|
||||||
|
* @li "guide" - placeholder of the entry
|
||||||
*
|
*
|
||||||
* Supported elm_object common APIs.
|
* Supported elm_object common APIs.
|
||||||
* @li @ref elm_object_signal_emit
|
* @li @ref elm_object_signal_emit
|
||||||
|
|
Loading…
Reference in New Issue