efl/src/tests
Daniel Hirt fae337469e Evas Textblock: Fix native width of BiDi text
Summary:
This fixes an issue that causes BiDi text to get wrapped even when
resizing the textblock to its native size.
The way we find the last visual item in the native line is wrong. The
'visual_pos' describes the visual position in the formatted layout, in
which wrapping may occur. So, this is really bad to use it for native
width calculations as well.
Also, there's no need to actually reorder the line - we just need the
last visual item.
This adds and uses a function very similar to _layout_line_reorder, in
which we retrieve the last visual item in the native line. This
function does not do any actual reordering, as the native layout is
disposed of after calculation is done.

Also, added GET_ITEM_LEN macro for convenience.

Fixes T1532

@fix

Test Plan: Added to evas textblock test suite in this patch

Reviewers: tasn

Subscribers: id213sin, JackDanielZ, cedric

Maniphest Tasks: T1532

Differential Revision: https://phab.enlightenment.org/D1353
2014-10-01 16:45:58 +01:00
..
ecore ecore_wayland: Created test suit for ecore_wayland. 2014-09-29 09:20:05 -04:00
ecore_audio_cxx eolian_cxx: initial version of the EFL C++ Bindings Generator. 2014-05-03 00:56:32 +02:00
ecore_cxx tests: Added config.h to tests. 2014-07-18 18:55:56 -03:00
edje tests: remove warnings. 2014-03-06 14:27:26 +09:00
edje_cxx eolian_cxx: initial version of the EFL C++ Bindings Generator. 2014-05-03 00:56:32 +02:00
eet efl: remove some warnings. 2014-05-24 02:27:15 +02:00
eet_cxx tests: Added config.h to tests. 2014-07-18 18:55:56 -03:00
eeze eeze/sensor: Switch timestamp to relative values coming. 2013-04-16 13:21:28 +01:00
efreet fix config.h inclusion across the tree 2014-09-23 15:56:46 -04:00
eina eina: add test cases for Eina_Trash 2014-09-22 14:59:27 +02:00
eina_cxx eina-cxx: Remove warnings from tests. 2014-07-21 20:18:51 -03:00
eldbus eldbus: fix tests to properly take into account the presence of ecore system module. 2013-12-23 11:42:12 +09:00
eldbus_cxx tests: Added config.h to tests. 2014-07-18 18:55:56 -03:00
emotion emotion test - fix lack of null checks in test code 2014-09-01 19:40:47 +09:00
eo Eo: Change eo_add/del/unref behaviour. 2014-09-25 17:38:45 +01:00
eolian tests/eolian: Added unit tests for eolian_function_is_constructor(). 2014-09-12 17:20:07 -03:00
eolian_cxx eolian: move efl eo files over to the new ctor syntax 2014-09-01 15:53:35 +01:00
evas Evas Textblock: Fix native width of BiDi text 2014-10-01 16:45:58 +01:00
evas_cxx eolian_cxx: initial version of the EFL C++ Bindings Generator. 2014-05-03 00:56:32 +02:00
.gitignore eolian_cxx: initial version of the EFL C++ Bindings Generator. 2014-05-03 00:56:32 +02:00