Hi Dalmazio, Dalmazio Brisinda wrote: > Does anyone know how to load an image into the gallery with it's original > dimensions intact? Presently, I'm just setting the thumbwidth and > thumbheight properties to some arbitrary value, but the images are always > scaled unnaturally. This is not supported by the gallery widget. All images get scaled down to the size of the thumbWidh/thumbHeight values. However, if you want to change this behaviour you can sublcass the gallery widget and overwrite the "createImageCell" method to suit to your needs.
> Is there a way to get this information from the image DOM element that > corresponds to the actual dimensions of the image? If you look at the demo [0] you can see that the "galleryList" map also holds information of width and height. These infos are handed in to the gallery widget. So you can use these two fields to set the actual sizes of the images. cheers, Alex [0] http://demo.qooxdoo.org/current/demobrowser/html/example/Gallery_1.html ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ qooxdoo-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
