mrKlar / PagedDragDropGrid

An Android ViewGroup that implements a paged grid with drag'n'drop moveable items
406 stars 185 forks source link

Fallback to using screen width and height causing problems #34

Open paour opened 11 years ago

paour commented 11 years ago

I haven't had time to fully investigate why DragDropGrid.acknowledgeHeightSize() was being called with a 0 height, but the fallback to using the screen dimensions is probably not the way to go: it will always generate a view that is too tall, and for multi-pane layouts it will be too wide as well.

paour commented 11 years ago

Using this solution may resolve this issue: wait for the parent to be laid out, then get its size.