forked from enlightenment/efl
elm: fix the default value for size_hint_min
Summary: The default value of size_hint_min is 0, but in sizing_eval of some elm widgets, default min value is set to -1. Reviewers: cedric, Hermet Reviewed By: Hermet Subscribers: Hermet Differential Revision: https://phab.enlightenment.org/D3451
This commit is contained in:
parent
ccb48ddcd6
commit
36193a72fd
|
@ -925,7 +925,7 @@ _elm_naviframe_item_elm_widget_item_signal_emit(Eo *eo_it EINA_UNUSED,
|
||||||
EOLIAN static void
|
EOLIAN static void
|
||||||
_elm_naviframe_elm_layout_sizing_eval(Eo *obj, Elm_Naviframe_Data *sd)
|
_elm_naviframe_elm_layout_sizing_eval(Eo *obj, Elm_Naviframe_Data *sd)
|
||||||
{
|
{
|
||||||
Evas_Coord minw = -1, minh = -1;
|
Evas_Coord minw = 0, minh = 0;
|
||||||
Elm_Naviframe_Item_Data *it, *top;
|
Elm_Naviframe_Item_Data *it, *top;
|
||||||
Evas_Coord x, y, w, h;
|
Evas_Coord x, y, w, h;
|
||||||
|
|
||||||
|
|
|
@ -18,7 +18,7 @@
|
||||||
static void
|
static void
|
||||||
_sizing_eval(Evas_Object *obj)
|
_sizing_eval(Evas_Object *obj)
|
||||||
{
|
{
|
||||||
Evas_Coord minw = -1, minh = -1;
|
Evas_Coord minw = 0, minh = 0;
|
||||||
Evas_Coord maxw = -1, maxh = -1;
|
Evas_Coord maxw = -1, maxh = -1;
|
||||||
|
|
||||||
ELM_MAPBUF_DATA_GET(obj, sd);
|
ELM_MAPBUF_DATA_GET(obj, sd);
|
||||||
|
|
|
@ -51,7 +51,7 @@ _mirrored_set(Evas_Object *obj,
|
||||||
EOLIAN static void
|
EOLIAN static void
|
||||||
_elm_panel_elm_layout_sizing_eval(Eo *obj, Elm_Panel_Data *sd)
|
_elm_panel_elm_layout_sizing_eval(Eo *obj, Elm_Panel_Data *sd)
|
||||||
{
|
{
|
||||||
Evas_Coord mw = -1, mh = -1;
|
Evas_Coord mw = 0, mh = 0;
|
||||||
|
|
||||||
ELM_WIDGET_DATA_GET_OR_RETURN(obj, wd);
|
ELM_WIDGET_DATA_GET_OR_RETURN(obj, wd);
|
||||||
|
|
||||||
|
|
|
@ -27,7 +27,7 @@ static const Evas_Smart_Cb_Description _smart_callbacks[] = {
|
||||||
static void
|
static void
|
||||||
_sizing_eval(Evas_Object *obj)
|
_sizing_eval(Evas_Object *obj)
|
||||||
{
|
{
|
||||||
Evas_Coord minw = -1, minh = -1, maxw = -1, maxh = -1;
|
Evas_Coord minw = 0, minh = 0, maxw = -1, maxh = -1;
|
||||||
double scale;
|
double scale;
|
||||||
|
|
||||||
ELM_PHOTO_DATA_GET(obj, sd);
|
ELM_PHOTO_DATA_GET(obj, sd);
|
||||||
|
|
|
@ -104,7 +104,7 @@ _photocam_image_file_set(Evas_Object *obj, Elm_Photocam_Data *sd)
|
||||||
static void
|
static void
|
||||||
_sizing_eval(Evas_Object *obj)
|
_sizing_eval(Evas_Object *obj)
|
||||||
{
|
{
|
||||||
Evas_Coord minw = -1, minh = -1, maxw = -1, maxh = -1;
|
Evas_Coord minw = 0, minh = 0, maxw = -1, maxh = -1;
|
||||||
ELM_WIDGET_DATA_GET_OR_RETURN(obj, wd);
|
ELM_WIDGET_DATA_GET_OR_RETURN(obj, wd);
|
||||||
|
|
||||||
evas_object_size_hint_max_get
|
evas_object_size_hint_max_get
|
||||||
|
|
|
@ -121,7 +121,7 @@ _elm_table_elm_widget_theme_apply(Eo *obj, void *sd EINA_UNUSED)
|
||||||
static void
|
static void
|
||||||
_sizing_eval(Evas_Object *obj)
|
_sizing_eval(Evas_Object *obj)
|
||||||
{
|
{
|
||||||
Evas_Coord minw = -1, minh = -1, maxw = -1, maxh = -1;
|
Evas_Coord minw = 0, minh = 0, maxw = -1, maxh = -1;
|
||||||
Evas_Coord w, h;
|
Evas_Coord w, h;
|
||||||
|
|
||||||
ELM_WIDGET_DATA_GET_OR_RETURN(obj, wd);
|
ELM_WIDGET_DATA_GET_OR_RETURN(obj, wd);
|
||||||
|
|
|
@ -144,7 +144,7 @@ _elm_video_elm_layout_sizing_eval(Eo *obj, Elm_Video_Data *sd)
|
||||||
{
|
{
|
||||||
ELM_WIDGET_DATA_GET_OR_RETURN(obj, wd);
|
ELM_WIDGET_DATA_GET_OR_RETURN(obj, wd);
|
||||||
|
|
||||||
Evas_Coord minw = -1, minh = -1;
|
Evas_Coord minw = 0, minh = 0;
|
||||||
Evas_Coord w = 0, h = 0;
|
Evas_Coord w = 0, h = 0;
|
||||||
|
|
||||||
evas_object_size_hint_request_get(sd->emotion, &minw, &minh);
|
evas_object_size_hint_request_get(sd->emotion, &minw, &minh);
|
||||||
|
|
Loading…
Reference in New Issue