popup: fix sizing eval logic when scrollable set TRUE
authorJinYong Park <j4939.park@samsung.com>
Tue, 11 Jul 2017 06:36:06 +0000 (15:36 +0900)
committerJean-Philippe Andre <jp.andre@samsung.com>
Tue, 11 Jul 2017 06:45:27 +0000 (15:45 +0900)
commit10d5f11a1450fd7b4295fbd0a99cc799eaeda4f6
tree94b79bae1ca7934f6768b0b9f2693dfeb351accb
parent0762d903809d8cd1c284ac0a2c1a18613dded6a8
popup: fix sizing eval logic when scrollable set TRUE

Summary:
When scrollable set TRUE,
scroller must be calculated its size except using item.
If content is removed, scroller doesn't calculate its size, so it has previous size.
So there is a empty space in this case.

@fix

Test Plan:
1. elementary_test -to popup
2. open "popup-center-title + list content + 2 button (with delete content)"
3. click "Delete" button
4. compare between scrollable set true and false

Reviewers: herb, singh.amitesh, jpeg, cedric, conr2d

Differential Revision: https://phab.enlightenment.org/D5010
src/bin/elementary/test_popup.c
src/lib/elementary/elc_popup.c