summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYeongjong Lee <yj34.lee@samsung.com>2019-09-06 09:20:13 +0200
committerXavi Artigas <xavierartigas@yahoo.es>2019-09-06 09:28:55 +0200
commit0c801b0d120a5ee8e01c5c323a56a9e07503bf51 (patch)
treee6c940dc0a42b3867de2fc8d923ab213b9e74a87
parent65be14db240218494930da39da4bcfe916b77aa2 (diff)
efl_ui_table: update recalc boolean in child delete callback
Test Plan: 1. elementary_test -to 'efl.ui.table (linear api)' 2. Click `Append` button 3 times. 3. Click `appended 6` button to delete 4. Click `Append` button. 5. Check that `appended 7` button position (1,1). Reviewers: segfaultxavi Reviewed By: segfaultxavi Subscribers: cedric, #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D9856
-rw-r--r--src/lib/elementary/efl_ui_table.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/lib/elementary/efl_ui_table.c b/src/lib/elementary/efl_ui_table.c
index 7ed1635db4..2c24c73fb1 100644
--- a/src/lib/elementary/efl_ui_table.c
+++ b/src/lib/elementary/efl_ui_table.c
@@ -58,6 +58,14 @@ _on_child_del(void *data, const Efl_Event *event)
58 gi = _efl_ui_table_item_date_get(table, pd, event->object); 58 gi = _efl_ui_table_item_date_get(table, pd, event->object);
59 if (!gi) return; 59 if (!gi) return;
60 60
61 if ((gi->col == pd->last_col) && (gi->row == pd->last_row))
62 pd->linear_recalc = EINA_TRUE;
63
64 if (gi->col + gi->col_span >= pd->cols)
65 pd->cols_recalc = EINA_TRUE;
66 if (gi->row + gi->row_span >= pd->rows)
67 pd->rows_recalc = EINA_TRUE;
68
61 pd->items = (Table_Item *) 69 pd->items = (Table_Item *)
62 eina_inlist_remove(EINA_INLIST_GET(pd->items), EINA_INLIST_GET(gi)); 70 eina_inlist_remove(EINA_INLIST_GET(pd->items), EINA_INLIST_GET(gi));
63 free(gi); 71 free(gi);