Because CSS does handle the transformation, it is not easy to calculate the offset. But it is much better handled as it was with just setting width and height of the image.
You could use the offsetHeight of the image, but this was only set if the image has already been added to page. This needs an additional listener for appear…. etc. In some cases you do not even want to have a offset. But I think in most cases, the translateX and translateY methods should do the trick. In all other cases, you can set the padding off the widget by using the functions mentioned before. padding-bottom: 10px Greetz Christopher Am 11.10.2012 um 15:46 schrieb kora: > Hi Christopher, > > ok, scaling of image / widget works in principle. > > But what about its offset ? > The container of the image, that is reserved by the layout management > seems to keep the origial image size (I have to scroll to see the scaled > image). > So I've to made a negative offset transformation to move the upper left > corner of the image using > setTranslateX() > setTranslateY() > > This works with one Image in a qx.ui.mobile.layout.VBox layout. > > But what about two scaled images in a qx.ui.mobile.layout.HBox layout ? > > > > Cheers > > Kora > > > > > > -- > View this message in context: > http://qooxdoo.678.n2.nabble.com/How-to-scale-Image-in-a-Mobile-environment-tp7581383p7581673.html > Sent from the qooxdoo mailing list archive at Nabble.com. > > ------------------------------------------------------------------------------ > Don't let slow site performance ruin your business. Deploy New Relic APM > Deploy New Relic app performance management and know exactly > what is happening inside your Ruby, Python, PHP, Java, and .NET app > Try New Relic at no cost today and get our sweet Data Nerd shirt too! > http://p.sf.net/sfu/newrelic-dev2dev > _______________________________________________ > qooxdoo-devel mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel ------------------------------------------------------------------------------ Don't let slow site performance ruin your business. Deploy New Relic APM Deploy New Relic app performance management and know exactly what is happening inside your Ruby, Python, PHP, Java, and .NET app Try New Relic at no cost today and get our sweet Data Nerd shirt too! http://p.sf.net/sfu/newrelic-dev2dev _______________________________________________ qooxdoo-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
