{"action":"created","issue":{"url":"https://api.github.com/repos/oetiker/issuetest2/issues/33","repository_url":"https://api.github.com/repos/oetiker/issuetest2","labels_url":"https://api.github.com/repos/oetiker/issuetest2/issues/33/labels{/name}","comments_url":"https://api.github.com/repos/oetiker/issuetest2/issues/33/comments","events_url":"https://api.github.com/repos/oetiker/issuetest2/issues/33/events","html_url":"https://github.com/oetiker/issuetest2/issues/33","id":138220555,"number":33,"title":"Setting width/height of qx.ui.basic.Image has no effect (bz#152)\n","user":{"login":"oetiker","id":429279,"avatar_url":"https://avatars.githubusercontent.com/u/429279?v=3","gravatar_id":"","url":"https://api.github.com/users/oetiker","html_url":"https://github.com/oetiker","followers_url":"https://api.github.com/users/oetiker/followers","following_url":"https://api.github.com/users/oetiker/following{/other_user}","gists_url":"https://api.github.com/users/oetiker/gists{/gist_id}","starred_url":"https://api.github.com/users/oetiker/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/oetiker/subscriptions","organizations_url":"https://api.github.com/users/oetiker/orgs","repos_url":"https://api.github.com/users/oetiker/repos","events_url":"https://api.github.com/users/oetiker/events{/privacy}","received_events_url":"https://api.github.com/users/oetiker/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/oetiker/issuetest2/labels/COMP:desktop.core","name":"COMP:desktop.core","color":"ffe502"},{"url":"https://api.github.com/repos/oetiker/issuetest2/labels/PROD:framework","name":"PROD:framework","color":"ffdb66"},{"url":"https://api.github.com/repos/oetiker/issuetest2/labels/VERS:0.6","name":"VERS:0.6","color":"98ff52"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-03-03T16:07:48Z","updated_at":"2016-03-03T16:07:50Z","closed_at":null,"body":"I encountered the problem that the width and height I9ve set for a qx.ui.basic.Image is ignored.\nRegardless which dimensions I set for the image it9s always displayed with its real height and width.\n\nFor testing I use the following code:\nqx.core.Init.getInstance().defineMain( function()\n{\n  // image size is 150x187 pixel\n  var img1 = new qx.ui.basic.Image(&#39;snapshot1.png&#39;, 500, 500);\n  img1.addToDocument();\n});\n\nwhich results in the following html output:\n...\n&lt;div style=&#39;position: absolute; -moz-user-select: none; width: 500px; height: 500px;&#39; title=&#39;&#39;&gt;\n&lt;img width=&#39;150&#39; height=&#39;187&#39; style=&#39;border: 0pt none ; vertical-align: top;&#39; src=&#39;snapshot1.png&#39;/&gt;\n&lt;/div&gt;\n...\n\nThe image is displayed with a width of 150 and a height of 187 pixel but it should be stretched to 500x500 pixel.\n\n<table>\n<tbody>\n<tr><td>Date</td><td>2006-09-11 14:40:00 +0200</td></tr>\n<tr><td>Reporter</td><td>Oliver Hauger (oliver.hauger)</td></tr>\n</tbody>\n</table>\n"},"comment":{"url":"https://api.github.com/repos/oetiker/issuetest2/issues/comments/191829153","html_url":"https://github.com/oetiker/issuetest2/issues/33#issuecomment-191829153","issue_url":"https://api.github.com/repos/oetiker/issuetest2/issues/33","id":191829153,"user":{"login":"oetiker","id":429279,"avatar_url":"https://avatars.githubusercontent.com/u/429279?v=3","gravatar_id":"","url":"https://api.github.com/users/oetiker","html_url":"https://github.com/oetiker","followers_url":"https://api.github.com/users/oetiker/followers","following_url":"https://api.github.com/users/oetiker/following{/other_user}","gists_url":"https://api.github.com/users/oetiker/gists{/gist_id}","starred_url":"https://api.github.com/users/oetiker/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/oetiker/subscriptions","organizations_url":"https://api.github.com/users/oetiker/orgs","repos_url":"https://api.github.com/users/oetiker/repos","events_url":"https://api.github.com/users/oetiker/events{/privacy}","received_events_url":"https://api.github.com/users/oetiker/received_events","type":"User","site_admin":false},"created_at":"2016-03-03T16:07:50Z","updated_at":"2016-03-03T16:07:50Z","body":"That9s simply not true and this way this also isn9t a bug. The image isn9t stretched, but it has the size one defines. \n\nTry:\n\nimg.setResizeToInner(true);\n\nto resize the image element to the inner available dimensions.\n\n<table>\n<tbody>\n<tr><td>Date</td><td>2006-09-11 15:14:19 +0200</td></tr>\n<tr><td>Who</td><td>Sebastian Werner (info)</td></tr>\n</tbody>\n</table>\n"}}