Opened 11 years ago
Closed 9 years ago
#10940 closed enhancement (fixed)
document how to set thumbnail size of a thumbnailPicker
Reported by: | hungerburg | Owned by: | Shane O'Sullivan |
---|---|---|---|
Priority: | high | Milestone: | 1.7 |
Component: | Documentation | Version: | 1.4.2 |
Keywords: | Cc: | ||
Blocked By: | Blocking: |
Description
There are two unanswered questions about this on the dojo mailing-list. The user-documentation is silent on it, while the somewhat documented public properties thumbWidth and thumbHeight of a thumbnailPicker instance will not work, which makes a false impression:
If, say, I wanted a thumbnail size different from 100x75, I may use css: to get thumbnails in size 144x96 pixels on any picker I will add to my stylesheet:
.thumbWrapper img { height: 96px; max-width: 144px; } .thumbOuter.thumbHoriz , .thumbHoriz .thumbScroller { height: 96px; }
you may anchor the css selector on an id or class to style different pickers differently. That took me some time to figure out, and as it seems to be a common feature missed, it might be good to have proposed in the http://dojotoolkit.org/reference-guide/
Change History (5)
comment:1 Changed 11 years ago by
Owner: | set to dante |
---|
comment:2 Changed 11 years ago by
Owner: | changed from dante to Shane O'Sullivan |
---|
comment:3 Changed 10 years ago by
comment:4 Changed 9 years ago by
I believe this ticket can be closed. If further enhancements are made to ThumbnailPicker? that can do different resizing we will add it to ref-guide. Example on how to resize images with CSS was added already 1.7 reference guide: http://livedocs.dojotoolkit.org/dojox/image/ThumbnailPicker
comment:5 Changed 9 years ago by
Milestone: | tbd → 1.7 |
---|---|
Resolution: | → fixed |
Status: | new → closed |
Shane hasn't been active for a while so I'm going to close the ticket on your advice.
Thanks. I've added your example to docs.dojocampus.org.