On Wed, Nov 10, 2010 at 6:19 PM, Rafael Fonseca <rfons...@profusion.mobi> wrote:
>> I confirm this problem, with a head revision of elm and enna. Add a
>> check on item->wd->item_height seems to fix it, and the gengrid object
>> looks good on screen.
>> One of the gengrid authors could checked please ?
>
> Gengrid must know the item sizes to be able to place them at its viewport.
> So when setting up gengrid one should call elm_gengrid_item_size_set.
>
> I agree we should check for the item_height and item_width before dividing
> but it also should be documented that the user must call the size_set
> function otherwise adding item to the grid would seem to have no effect at
> all.
>
> --
> Rafael Fonseca
> ProFUSION embedded systems
> http://www.profusion.mobi
>

elm_gengrid_item_size_set is called in the code, but the value is
calculated depending on the size of the container. When I add items in
it, the first time the container objet is 0x0. After that the
container is resized, the signal resized is sent and the value of
imte_size_set is calculated to always have the same number of rows.

There is maybe another way to do that, but IMO we should check values
before dividing.

Nico.

-- 
Nicolas Aguirre
Mail: aguirre.nico...@gmail.com
Web: http://www.digital-corner.org

------------------------------------------------------------------------------
The Next 800 Companies to Lead America's Growth: New Video Whitepaper
David G. Thomson, author of the best-selling book "Blueprint to a 
Billion" shares his insights and actions to help propel your 
business during the next growth cycle. Listen Now!
http://p.sf.net/sfu/SAP-dev2dev
_______________________________________________
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel

Reply via email to