It does put my buttons on the right and my log on the left, but the parent widget has the exact size of my buttons + my logo (no free space left). Maybe my question should be : how can a widget be adaptative to page size so free space is generated automatically ?
Thomas Suckow a écrit : > Have you tried floating the buttons with css (float:right)? I think that > will give the look you are seeking. > > On 08/04/2011 05:24 AM, Bamiel wrote: > >> Hello, >> >> I have a simple widget with a logo on the left and buttons on the right. >> _________________________________________________ >> LOGO //--------------free space--------------// BTN1 BTN2 >> ------------------------------------------------------------------ >> >> I use a WHBoxLayout that contains my WImage and WPushButtons. >> >> I would like to have as much free space between buttons and image as >> possible (the larger the page is, the most free space i have) using CSS >> (Image and buttons are customised in CSS) so my widget has always the >> same size as page width. >> >> I dont get how i can to that in a proper way, i tried with the alignment >> flag while adding the widget to the layout, but there is no free space. >> >> Question : What is the best way to do this ? >> >> Ty for reading. >> >> >> >> >> >> ------------------------------------------------------------------------------ >> BlackBerry® DevCon Americas, Oct. 18-20, San Francisco, CA >> The must-attend event for mobile developers. Connect with experts. >> Get tools for creating Super Apps. See the latest technologies. >> Sessions, hands-on labs, demos& much more. Register early& save! >> http://p.sf.net/sfu/rim-blackberry-1 >> _______________________________________________ >> witty-interest mailing list >> [email protected] >> https://lists.sourceforge.net/lists/listinfo/witty-interest >> > > ------------------------------------------------------------------------------ > BlackBerry® DevCon Americas, Oct. 18-20, San Francisco, CA > The must-attend event for mobile developers. Connect with experts. > Get tools for creating Super Apps. See the latest technologies. > Sessions, hands-on labs, demos & much more. Register early & save! > http://p.sf.net/sfu/rim-blackberry-1 > _______________________________________________ > witty-interest mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/witty-interest > > ------------------------------------------------------------------------------ BlackBerry® DevCon Americas, Oct. 18-20, San Francisco, CA The must-attend event for mobile developers. Connect with experts. Get tools for creating Super Apps. See the latest technologies. Sessions, hands-on labs, demos & much more. Register early & save! http://p.sf.net/sfu/rim-blackberry-1 _______________________________________________ witty-interest mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/witty-interest
