Hi Tobias,

your issue sounds like a CSS problem. You should be able to fix that by setting 
with or height to 100% and the other other one to auto.
But that does not work with small images. Are you able to get the size of the 
image? If you do just add an additional class to the image e.g. “small” and set 
width and height to auto.
Than you just need to center the image ;) But that’s another question.

I am not an CSS expert, but I hope I could help you a bit.

Gruß
Mustafa Sak

Applications & Integration
1&1 Internet AG | Ernst-Frey-Straße 10 | 76135 Karlsruhe | Germany

Von: Tobias Roeder [mailto:[email protected]]
Gesendet: Donnerstag, 5. Februar 2015 22:22
An: qooxdoo Development
Betreff: [qooxdoo-devel] Image size / fit parent (qx mobile)

Hey,

when I add a qx.mobile.basic.Image to a form.Group programmatically (using the 
camera API from apache cordova) it isn't automatically rescaled to fit the 
available space. I dont want the group to be resized and i dont want the image 
to be bigger than it and therefore overlapping it.

What would I have to do to have those images automatically resized to the 
available space? Same goes for small images. They should not be stretched but 
maintain their real dimensions.

Thanks in advance.
------------------------------------------------------------------------------
Dive into the World of Parallel Programming. The Go Parallel Website,
sponsored by Intel and developed in partnership with Slashdot Media, is your
hub for all things parallel software development, from weekly thought
leadership blogs to news, videos, case studies, tutorials and more. Take a
look and join the conversation now. http://goparallel.sourceforge.net/
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to