Thanks, Niphlod. Seems like such a simple task to arrange divs into a grid with approximately even column heights, but I guess it does appear fairly unfeasible to do this in the controller. Guess I'll have to optimize my jquery solution to this issue...
On Tuesday, June 10, 2014 2:07:18 PM UTC-5, Niphlod wrote: > > there's no such thing around. Every browser has its own rendering engine > and albeit they "should" render everything as "expected", small differences > exists. That's why the only way to manage it is in javascript, that can > accomodate dinamically those differences because the environment where it > runs is the browser itself. web2py has practically no knowledge beforehand > on how a particular dom structure will be rendered (and/or the knowledge it > has is so limited that calculating it would practically mean that you need > to code every browser out there by yourself (and you can't compare yourself > with Apple plus Microsoft plus Mozilla Foundation plus Google plus Opera > engineers)). > > On Tuesday, June 10, 2014 1:11:58 AM UTC+2, Spokes wrote: >> >> What was the problem with the approach mentioned above? >> >> Anyway, here is what I was trying to do: my page has a bunch of divs >> (let's call them cells), each containing content which makes their height >> distinct from other cells, while the width more or less remains constant. >> I'd like to arrange these cells in a grid within a parent "#content" div, >> specifying how many columns there should be in this grid, or alternatively, >> how wide each column should be. I've tried jquery plugins for this, but >> they come with their own set of problems, and it would probably be best if >> the grid were created within the controller, instead of the view (i.e. >> through jquery). To try to level out the height of the grid columns, it >> would be useful to know how tall each of the cells is. Any ideas for how to >> go about doing that? >> > -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.

