David Karger wrote:
>
> David Huynh wrote:
>
>> John Callahan wrote:
>>
>>
>>> I also just noticed in the Tile view, the item numbers do not continue
>>> for each page but instead reset to one. For example, page 1 lists
>>> items numbered 1 - 10. Page 2 also lists items numbered 1 - 10, and
>>> so on.
>>>
>>>
>> Thanks for spotting that. So far I've been using <ol> to render the tile
>> view, but there's no way to set the starting number for an <ol> (in
>> Javascript or CSS). I might have to switch to using a <table> with the
>> first column showing the numbers.
>>
>>
> you could <ol> starting from 1 (but with blank contents) until you get
> to the ones you want to render, then use css to hide all the blank
> ones. that avoids needing to figure out how to get a table to render
> and flow exactly like an ol
>
It turns out that browsers are too smart for their own good. They ignore
hidden <li> and still start to count from 1 for the visible ones. I just
tried the hack.
>> By the way, for the *thumbnail* view, I've been using float:left to make
>> the thumbnail lenses arrange themselves horizontally and wrap when they
>> run out of space. But this causes weird gaps if the lenses are not of
>> the same height. I've been thinking of switching to a <table>, and
>> support a setting such as ex:thumbnailColumns="3". That helps with
>> pagination, too, since we can automatically round the page size to a
>> multiple of the number of columns, so that the last row is always
>> complete (except on the last page). What do you think?
>>
>>
> how about rendering a table _only_ if ex:thumbnailcolumns is set, and
> otherwise using the current float:left? the downside of a table is that
> it is hard to pick a column count that'll work in all browser sizes.
> another option: how about letting someone specify a itemSize, and
> wrapping each rendering item in a one-cell table of exactly that size,
> which will then look nice in float-left mode?
> or, if you want to get _really_ fancy, how about computing the number of
> columns that'll fit in the current window, and modifying the column
> count as needed if the page gets resized?
>
Done... The setting is ex:columnCount. You can see it here
http://trunk.simile-widgets.org/exhibit/examples/cereals/cereal-characters.html
David
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"SIMILE Widgets" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/simile-widgets?hl=en
-~----------~----~----~----~------~----~------~--~---