Hi Denis, Thanks for ur reply. it works fine. But Image is not expanded automatically. i.e., Empty spaces are available around the Image. I need the Image ll be displayed and occupies the whole bodylayout automatically.(When the resolution changes).
Here is the code I've used... bodyLayout = new qx.ui.layout.CanvasLayout(); bodyLayout.setBackgroundImage("./hrimages/imaps.gif"); i just get the bodyLayout width and it's height by following... var wid = (doc.getClientWidth() - 200); (doc is DocumentLayout...) var hei = (doc.getClientHeight() - 29); and i've used qx.ui.basic.Image Class to Resize the Image specified in setBackgroundImage method.. var dyImg = new qx.ui.basic.Image("./hrimages/imaps.gif", wid, hei); now i just applied a method to bodyLayout like... bodyLayout.setBackgroundImage(dyImg.getSource()); i might be wrong with this one. How can i replace the old Image to Scaled Image(dyImg). Regards, Rajkumar.S Dioc wrote: > > Hello Rajkumar, > > Add the following line to your code: > > bodyLayout.setStyleProperty("backgroundRepeat", "no-repeat"); > > Best wishes, > Denis > > > > deepakraj wrote: >> >> Dear Members, >> i am entirely new to this forum. i have doubt in image resizing >> when the System resolution changes...using qx.ui.basic.Image class... >> i am working in a System Resolution of 1024X768 pixels. >> i have set an image to one CanvasLayout.. >> like., >> bodyLayout = new qx.ui.layout.CanvasLayout(); >> bodyLayout.setBackgroundImage("./hrimages/imaps.gif"); >> which fits suitably on this Resolution. >> >> When i change the Resolution to 1280X1024 pixels the Image ll >> be Tiled... >> How can i fix this Problem. >> >> thanks in adv. >> Rajkumar.S >> > > -- View this message in context: http://www.nabble.com/Resize-Image-Depends-on-the-System-Resolution-tf4627836.html#a13231685 Sent from the qooxdoo-devel mailing list archive at Nabble.com. ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ qooxdoo-devel mailing list qooxdoo-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel