efl/src/bin
Yeongjong Lee 5572000f1a efl_ui_table: refactor layout_update
Summary:
There are three reasons to refactor layout_update of Efl.Ui.Table.

=== 1. Inconsistency of hint behavior. ===

Some hint property is often not respected. for example, hint_min is ignored in
Table when it is used with hint_max even if hint_weight is 0. hint_aspect is
always ignored in Table.
The ambiguous behavior make it hard to layout widgets in container. of course,
we documented 'it's just a hint that should be used whenever appropriate.' but i
don't think it means that 'hint API is sometimes respected and we also don't
know when that API is respected.'. at least there is rule for consistent
behavior and we should be able to explain why a widget is located here and
why some hint property is ignored.

So, i'll suggest priority of hint property. this refactoring support following
priority.
1) HintMin
2) HintMin + HintAspect
3) HintMargin
4) HintMax
5) HintAspect
6) HintWeight, HintFill
7) HintAlign

ref T5487
Please check with unit test D7840

=== 2. To Enhance usability. ===

Efl.Ui.Table is using homogeneous mode of evas_table which have same columns,
rows size. but i think a table can generally change columns, rows size and
we can provide homogeneous mode option.(D7892)

In this patch
 - table columns(rows) min size is decided by maximum size among its cells
width(height) min size.
 - table columns(rows) weight is decided by maximum weight among its cells
horizontal(vertical) weight.

Also, pack_align is implemented. it is used if no item has a weight.

=== 3. To remove internal evas_table. ===

This is low priority work. however, i guess is is necessary for lightweight
container widget. there are two size_hint callback to adjust table size and
efl_canvas_group_calculate is called twice when it is resized.
This patch is first step to remove internal evas_table.

Test Plan:
make check
elementary_test -to 'efl.ui.table'

Reviewers: jpeg, Jaehyun_Cho, zmike

Reviewed By: zmike

Subscribers: zmike, cedric, #reviewers, #committers

Tags: #efl

Maniphest Tasks: T5487

Differential Revision: https://phab.enlightenment.org/D7841
2019-02-27 14:45:27 -05:00
..
ecore_buffer here comes meson 2018-10-02 17:22:50 +02:00
ecore_con cmake: remove! 2018-12-20 20:07:26 +01:00
ecore_evas here comes meson 2018-10-02 17:22:50 +02:00
edje efl.file: improve api a bit 2019-02-27 13:17:10 -05:00
eet meson - dont install eina bench cmp and use install_mode 2018-12-27 17:17:13 +00:00
eeze cmake: remove! 2018-12-20 20:07:26 +01:00
efl here comes meson 2018-10-02 17:22:50 +02:00
efl_js efl-js: JavaScript Eolian binding 2015-12-23 23:59:40 -02:00
efl_mono_msbuild_gen efl_mono: Add msbuild file generator 2017-12-04 15:47:51 -03:00
efl_wl meosn - fix install of scripts and bins and their timestamps and modes 2018-12-27 15:24:08 +00:00
efreet efreet - fix warnings on windows to do with size casting 2019-01-15 12:26:42 +00:00
eina eina - btlog - fix warnign about uninit struct field 2018-11-09 11:43:58 +00:00
eldbus ledbus - fix codegen to not conflict keys with eldbus inyternal 2019-01-09 18:57:22 +00:00
elementary efl_ui_table: refactor layout_update 2019-02-27 14:45:27 -05:00
elua build: fix macos build 2019-02-22 08:53:20 -05:00
embryo docs: Fix assorted typos in legacy documentation 2019-01-28 13:14:20 +01:00
eolian eo: make reflection setter able to return an error code in case of failure. 2019-02-21 11:54:09 -08:00
eolian_cxx build: remove unused meson file 2018-12-17 17:43:06 +01:00
eolian_js evas: remove render2 2018-08-21 10:36:55 -04:00
eolian_mono efl-csharp: Add support for containers in events. 2019-02-22 14:07:24 -03:00
ethumb here comes meson 2018-10-02 17:22:50 +02:00
ethumb_client here comes meson 2018-10-02 17:22:50 +02:00