What actually I need is to resize the view. when user drags it for maximize........
On Mar 10, 7:26 pm, Wagner Nitsch <[email protected]> wrote: > What do you want to resize? > > From what I saw in your XML file, the name of your div is mainDiv. > > mainDiv.width = view.width; > mainDiv.height = view.height; > > If you want to change the entire view: > > view.width = newViewWidth; > view.height = newViewHeight; > > This is what you wanted? > > Best Regards, > Wagner Nitsch Bressan. > > > > On Mon, Mar 8, 2010 at 4:09 PM, mrf <[email protected]> wrote: > > Hey., Wagner here I'm with another doubt.. Hope U may have better > > idea..My problem is resize the gadget.. > > > I'm doing something like this........ > > /*******************/ > > > main.xml > > ----------------------- > > <view height="150" resizable="true" width="250" > > > <div height="152" name="mainDiv" width="250" x="0" y="-1" > > background="#00CCEE"/> > > <img height="151" name="img" width="250" x="-1" y="0" > > src="stock_images\background.png" > > /> > > <script src="main.js" /> > > > </view> > > ____________________________________________ > > and in main.js > > ----------------------- > > var width = view.width; > > var height = view.height; > > > div.x= width- div.width; //div.width = width-div.width; > > div.y = height-div.height; //div.height = width-div.height; > > > /*******************/ > > > where i'm missing logic..??- Hide quoted text - > > - Show quoted text - -- You received this message because you are subscribed to the Google Groups "Google Desktop Developer Group" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/google-desktop-developer?hl=en.
