rnystrom / RNGridMenu

A grid menu with elastic layout, depth of field, and realistic animation.
MIT License
1.28k stars 192 forks source link

Wrong layout in Grid if item count is not divisble by 3 #14

Closed thaberkern closed 11 years ago

thaberkern commented 11 years ago

I have a grid with 8 and 10 menu items. Both render wrong on a iphone.

First of all on iPhone a max. of 3 Items per row is best. RNGridMenu chooses 4.

If I have 10 Menu items. The get layouted at the moment as:

x x x x
x     x
  x x 

which means 2 are missing

If I have 8 items they get layouted as 2 rows of 4 which can't display on iphone

rnystrom commented 11 years ago

Fixed in https://github.com/rnystrom/RNGridMenu/pull/15. Again, really appreciate it.