forked from enlightenment/efl
edje: fix cursor scrolling
If there is a string larger than the size of entry and when the entry is auto scrolling, cursor is not visible. Using _edje_entry_cursor_geometry_get guarantees the minimum size of the cursor, and guarantee the size from edje. (min_restricted_calc) Reviewed-by: Ali Alzyod <ali198724@gmail.com> Differential Revision: https://phab.enlightenment.org/D11649
This commit is contained in:
parent
e2365a0ed3
commit
62b4e2a2da
|
@ -384,8 +384,12 @@ EAPI void
|
|||
edje_object_part_text_cursor_geometry_get(const Edje_Object *obj, const char * part EINA_UNUSED, int *x, int *y, int *w, int *h)
|
||||
{
|
||||
GET_REAL_PART_ON_FAIL_RETURN()
|
||||
evas_textblock_cursor_geometry_bidi_get(_edje_text_cursor_get(rp, EDJE_CURSOR_MAIN),
|
||||
x, y, w, h, NULL, NULL, NULL, NULL, EVAS_TEXTBLOCK_CURSOR_BEFORE);
|
||||
if (rp->part->entry_mode > EDJE_ENTRY_EDIT_MODE_NONE)
|
||||
{
|
||||
_edje_entry_cursor_geometry_get(rp, x, y, w, h, NULL);
|
||||
if (x) *x -= ed->x;
|
||||
if (y) *y -= ed->y;
|
||||
}
|
||||
}
|
||||
|
||||
EAPI Eina_Bool
|
||||
|
|
Loading…
Reference in New Issue