Textblock: Fix padding computation (part 1)
authorJean-Philippe Andre <jp.andre@samsung.com>
Wed, 8 Jan 2014 06:28:49 +0000 (15:28 +0900)
committerJean-Philippe Andre <jp.andre@samsung.com>
Wed, 15 Jan 2014 08:55:27 +0000 (17:55 +0900)
commit6970a020c1b4b61370f418e63a1eb4a6a973e667
treeed33e1cd434ef91a2778c418cbd2fba7828cf931
parent74bfb950c67f6c174bfab55448f5d7ac6eb2f6b0
Textblock: Fix padding computation (part 1)

Track padding per paragraph, since this is how it is computed.

Problem before this patch:
- If markup text is changed, padding may grow, and the layout is updated (good)
- If the UI itself needs a relayout, the old padding value is NOT reused,
so style paddings will reset the padding to 0.

Test protocol:
- Set some text with style=glow. The whole object should have padding 2,2,2,2
- Relayout the UI, the whole object will have padding 0,0,0,0 (should be 2,2,2,2)
src/lib/evas/canvas/evas_object_textblock.c