Set the image height and width to 'auto'. That's the default. Ian http://examples.roughian.com
2009/8/18 GWTCurious <[email protected]> > > There exist the method com.google.gwt.dom.client.Element.getStyle() to > get the Style object of the element but there is no corresponding > setStyle() method. Also Style has the getProperty() and setProperty() > methods but no removeProperty method(). > > Consider the case : you want to add width and height properties to an > image to programmatically zoom it but later want to reset it to the > original style. Currently you can not remove the width and height > properties, you could only set their values to original size values. > But this has not the same effect as resetting the style to the > original status without with and height properties. For example if you > would like the animate the image, size and width properties cause > animation to be not fluid. > > So either we should have com.google.gwt.dom.client.Element.setStyle > (Style s) to set back the original saved style object or Style should > have a removeStyle(String property) method to remove a property from a > style. Best we should have both as it gives flexibility regarding > dynamic styling. > > What do you think? > > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Google Web Toolkit" 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/google-web-toolkit?hl=en -~----------~----~----~----~------~----~------~--~---
