projects
/
platform
/
upstream
/
efl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4ca8375
)
Canvas layout: fix part text cursor geometry port
author
Daniel Hirt
<hirt.danny@gmail.com>
Wed, 21 Jun 2017 07:47:08 +0000
(10:47 +0300)
committer
Daniel Hirt
<hirt.danny@gmail.com>
Wed, 21 Jun 2017 07:50:09 +0000
(10:50 +0300)
Forgot to consider the edje object's offset when porting the code
to efl_part (see
98dad1a52b0c75c18191b069c87ebb6f493e74ca
).
This fixes a few bugs, one of which is region_show for the scrollable
mode.
src/lib/edje/edje_part_text.c
patch
|
blob
|
history
diff --git
a/src/lib/edje/edje_part_text.c
b/src/lib/edje/edje_part_text.c
index
e7f8abd
..
027863a
100644
(file)
--- a/
src/lib/edje/edje_part_text.c
+++ b/
src/lib/edje/edje_part_text.c
@@
-171,7
+171,12
@@
_efl_canvas_layout_internal_text_efl_text_cursor_cursor_geometry_get(Eo *obj,
Evas_Coord *cw2 EINA_UNUSED, Evas_Coord *ch2 EINA_UNUSED)
{
PROXY_DATA_GET(obj, pd);
- _edje_entry_cursor_geometry_get(pd->rp, cx, cy, cw, ch, NULL);
+ if (pd->rp->part->entry_mode > EDJE_ENTRY_EDIT_MODE_NONE)
+ {
+ _edje_entry_cursor_geometry_get(pd->rp, cx, cy, cw, ch, NULL);
+ if (cx) *cx -= pd->ed->x;
+ if (cy) *cy -= pd->ed->y;
+ }
RETURN_VAL(EINA_FALSE);
}