From: ChunEon Park <chuneon.park@samsung.com>
authorChunEon Park <chuneon.park@samsung.com>
Mon, 10 Jan 2011 08:59:40 +0000 (08:59 +0000)
committerCarsten Haitzler <raster@rasterman.com>
Mon, 10 Jan 2011 08:59:40 +0000 (08:59 +0000)
commit11ec774ac808cb171a1975c0c0aed03e1bd90fa4
tree06bbcc42b491330dfd19c4a4b5dcf3088477ade2
parent87b8b71274b7d0db5f4d8fb904c811fe9d354248
From: ChunEon Park <chuneon.park@samsung.com>
Subject: [PATCH] elc_ctxpopup

Here code is for the ctxpopup.

Since the functionalities of ctxpopup are somewhat different,
I'm trying to overwrite the ctxpopup code entirely first.

The main reason is,
Original ctxpopup could determine it's size and position by itself.
Of course, upstreamed version supports this. But it can not be reduced
it's
size
And it supposes the arrow position to center of box edje.

Basically,
This version calculates it's box size first then find available space
from
the it's position.
The origin position of the box is not expected, it finds the available
positions.
But if there is not enough space to be shown, then it finds a best
direction
to be shown again.
In this case, it reduces it's size also as to be shown entirely.
Since the ctxpopup supports scroller, the reduced box could show the all
items also.
(The point is ctxpopup should know the size of total items...)

I'm not sure the upstreamed version could cover the above scenario,
If then, I need to modify it first.

(fixed some minor formatting issue too)

SVN revision: 56021
data/themes/default.edc
src/bin/test_ctxpopup.c
src/lib/Elementary.h.in
src/lib/elc_ctxpopup.c