forked from enlightenment/enventor
template: fix the fixed condition for relative_to
Summary: fix the fixed condifion for relative_to. the condition was wrong, so I fixed it. Test Plan: 1. Launch Enventor 2. Click a Live Edit Item 3. Check fixed_w and fixed_h 4. Insert the Live Edit Item Reviewers: Hermet, Jaehyun_Cho, NikaWhite Differential Revision: https://phab.enlightenment.org/D3943
This commit is contained in:
parent
afd04c7469
commit
6ba3339d25
|
@ -321,16 +321,13 @@ template_part_insert(edit_data *ed, Edje_Part_Type part_type,
|
||||||
//Width and Height are fixed
|
//Width and Height are fixed
|
||||||
else if(fixed_w && fixed_h)
|
else if(fixed_w && fixed_h)
|
||||||
{
|
{
|
||||||
if (!rel1_x_to || !rel1_y_to || !rel2_x_to || !rel2_y_to)
|
elm_entry_entry_insert(edit_entry, p);
|
||||||
{
|
snprintf(buf, sizeof(buf), " fixed: %d %d;<br/>", 1, 1);
|
||||||
elm_entry_entry_insert(edit_entry, p);
|
elm_entry_entry_insert(edit_entry, buf);
|
||||||
snprintf(buf, sizeof(buf), " fixed: %d %d;<br/>", 1, 1);
|
elm_entry_entry_insert(edit_entry, p);
|
||||||
elm_entry_entry_insert(edit_entry, buf);
|
snprintf(buf, sizeof(buf), " min: %d %d;<br/>", min_w, min_h);
|
||||||
elm_entry_entry_insert(edit_entry, p);
|
elm_entry_entry_insert(edit_entry, buf);
|
||||||
snprintf(buf, sizeof(buf), " min: %d %d;<br/>", min_w, min_h);
|
line_cnt += 2;
|
||||||
elm_entry_entry_insert(edit_entry, buf);
|
|
||||||
line_cnt += 2;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
//If there are some relative_to part then insert relative_to
|
//If there are some relative_to part then insert relative_to
|
||||||
|
|
Loading…
Reference in New Issue