On Mon, Jun 29, 2009 at 12:59 PM, David Huynh <[email protected]> wrote:
> >> 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 I don't think the ex:columnCount solution solves the issue on ex:pageSize I raised in a subsequent response (below). How about an ex:rowCount instead? That way, when you resize-horizontally, there won't be wasted space/clipping, and the total page size will remain consistent -- which is the point of pagination in the first place. (Any chance the last page with fewer items can keep the overall panel size the same??) ... > (1) The thumbnail view is sized, e.g. ex:pageSize="20", just like the > other views that have the feature. > However, the semantics of the thumbnail view is "different" -- each item > has a limited horizontal size and does not require a full-line to represent > itself in the display. Therefore, unlike the other views where > ex:pageSizesets the number of items (and therefore lines), the thumbnail view > would be > more consistently sized (e.g. w/ different screen widths/resolutions/etc) if > the ex:pageSize set the number of *lines* of display, not items, as in > other views. > > Corollary #1: If you resize a thumbnail view window, it will often resize > to a configuration with a different number of columns, but the same total > number of items as initially displayed. This leaves a bunch of wasted blank > space where other thumbnails could be displayed. If ex:pageSize set the > number of lines to display in the thumbnail view, instead of the number of > items, this blank-space on resize can be avoided (however, for the > thumbnail, the page-legend would need to dynamically calculate the target > page at "click time" based on the current number of items displayed or the > current size of the thumbnail view). > > Alternative for #1: have the number of items in the thumbnail view strictly > controlled by setting like ex:thumbnailHeight and ex:thumbnailWidth as > in the map and timeline views. In fact, a setting like this for each view > (or generic ex:height and ex:width for all views) would prevent problem #2, > below: > > (2) I've noticed the presidents > example<http://trunk.simile-widgets.org/exhibit/examples/presidents/presidents.html>gets > pretty "jumpy" when moving between pages of the new pagination feature, > because the table size is changing dynamically, which forces the facets TD > on the left to jump around as well. There appears to be a lot of unnecessary > resizing going on which wouldn't happen if there was a way to set the size > such that it stays constant and does not propagate to the facets area. > Framed by Xwiki, I get slightly different jumping behavior: > http://nielsmayer.com/xwiki/bin/view/Exhibit/Presidents4 that is also > annoying. ... Thanks, Niels. http://nielsmayer.com --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
