if (h < _elm_config->finger_size)
h = _elm_config->finger_size;
- else
- h = 1 + h; //elm_widget_show_region_set expects some change, to redo the job.
- elm_widget_show_region_set(focus_obj, x, y, w, h);
+
+ elm_widget_show_region_set(focus_obj, x, y, w, h, EINA_TRUE);
}
}
evas_object_size_hint_max_set(data, -1, minh);
if (wd->deferred_cur)
- elm_widget_show_region_set(data, wd->cx, wd->cy, wd->cw, wd->ch);
+ elm_widget_show_region_set(data, wd->cx, wd->cy, wd->cw, wd->ch, EINA_FALSE);
}
static void
edje_object_part_text_cursor_geometry_get(wd->ent, "elm.text", &cx, &cy, &cw, &ch);
if (!wd->deferred_recalc_job)
- elm_widget_show_region_set(data, cx, cy, cw, ch);
+ elm_widget_show_region_set(data, cx, cy, cw, ch, EINA_FALSE);
else
{
wd->deferred_cur = EINA_TRUE;
edje_object_part_text_cursor_geometry_get(wd->ent, "elm.text", &cx, &cy, &cw, &ch);
if (!wd->deferred_recalc_job)
- elm_widget_show_region_set(data, cx, cy, cw, ch + elm_finger_size_get());
+ elm_widget_show_region_set(data, cx, cy, cw, ch + elm_finger_size_get(), EINA_FALSE);
else
{
wd->deferred_cur = EINA_TRUE;
&cx, &cy, &cw, &ch);
wd->cursor_pos = edje_object_part_text_cursor_pos_get(wd->ent, "elm.text", EDJE_CURSOR_MAIN);
if (!wd->deferred_recalc_job)
- elm_widget_show_region_set(data, cx, cy, cw, ch);
+ elm_widget_show_region_set(data, cx, cy, cw, ch, EINA_FALSE);
else
{
wd->deferred_cur = EINA_TRUE;
Evas_Coord x,
Evas_Coord y,
Evas_Coord w,
- Evas_Coord h)
+ Evas_Coord h,
+ Eina_Bool forceshow)
{
Evas_Object *parent_obj, *child_obj;
Evas_Coord px, py, cx, cy;
API_ENTRY return;
- if ((x == sd->rx) && (y == sd->ry) && (w == sd->rw) && (h == sd->rh)) return;
+ if (!forceshow && (x == sd->rx) && (y == sd->ry)
+ && (w == sd->rw) && (h == sd->rh)) return;
sd->rx = x;
sd->ry = y;
sd->rw = w;
(void)top;
(void)output;
#endif
-}
\ No newline at end of file
+}
EAPI void elm_widget_change(Evas_Object *obj);
EAPI void elm_widget_disabled_set(Evas_Object *obj, int disabled);
EAPI int elm_widget_disabled_get(const Evas_Object *obj);
-EAPI void elm_widget_show_region_set(Evas_Object *obj, Evas_Coord x, Evas_Coord y, Evas_Coord w, Evas_Coord h);
+EAPI void elm_widget_show_region_set(Evas_Object *obj, Evas_Coord x, Evas_Coord y, Evas_Coord w, Evas_Coord h, Eina_Bool forceshow);
EAPI void elm_widget_show_region_get(const Evas_Object *obj, Evas_Coord *x, Evas_Coord *y, Evas_Coord *w, Evas_Coord *h);
EAPI void elm_widget_focus_region_get(const Evas_Object *obj, Evas_Coord *x, Evas_Coord *y, Evas_Coord *w, Evas_Coord *h);
EAPI void elm_widget_scroll_hold_push(Evas_Object *obj);