ephoto: fix zoom functions on single browser
For elm images. Using evas images size instead of elm_image size. Patch by: Igor Murzov (GArik_) <e-mail@date.by> SVN revision: 75637
This commit is contained in:
parent
5c1701091a
commit
e781115b2c
|
@ -145,7 +145,7 @@ _viewer_zoom_apply(Ephoto_Viewer *v, double zoom)
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
Evas_Coord w, h;
|
Evas_Coord w, h;
|
||||||
elm_image_object_size_get(v->image, &w, &h);
|
evas_object_image_size_get(elm_image_object_get(v->image), &w, &h);
|
||||||
w *= zoom;
|
w *= zoom;
|
||||||
h *= zoom;
|
h *= zoom;
|
||||||
evas_object_size_hint_min_set(v->image, w, h);
|
evas_object_size_hint_min_set(v->image, w, h);
|
||||||
|
@ -167,7 +167,7 @@ _viewer_zoom_fit_apply(Ephoto_Viewer *v)
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
evas_object_geometry_get(v->scroller, NULL, NULL, &cw, &ch);
|
evas_object_geometry_get(v->scroller, NULL, NULL, &cw, &ch);
|
||||||
elm_image_object_size_get(v->image, &iw, &ih);
|
evas_object_image_size_get(elm_image_object_get(v->image), &iw, &ih);
|
||||||
}
|
}
|
||||||
|
|
||||||
if ((cw <= 0) || (ch <= 0)) return; /* object still not resized */
|
if ((cw <= 0) || (ch <= 0)) return; /* object still not resized */
|
||||||
|
|
Loading…
Reference in New Issue