in fact i was not enough clear on my explanation, i would like to make my gadget have automatic width adjustment... for now the resizeable value not really help me (by the way, SDK designer not good manage it at all :-( ) is it possible to react on sidebar resize, and on startup of the gadget, to know width of sidebar and adjust gadget size?
thanks a lot for all your help, On Dec 12, 4:24 pm, Bijoy Thangaraj <[email protected]> wrote: > Hello, > > This can be done dynamically on any event through the associated > JavaScript file (main.js). > > As an example, suppose you want to increase the height of the view on > click of a button, you can have a handler function as shown below: > > function button1_onclick() { > view.height = 400; //set the new height here. > > } > > Thanks and Regards, > Bijoy Thangarajhttp://www.gdgadgets.com > > On Dec 12, 3:34 pm, zehunter <[email protected]> wrote: > > > hi, > > > i also have the same problem, when testing my gadget i see nothing :- > > ( it's tiny tiny ... > > > my view : > > <view height="300" resizable="zoom" showCaptionAlways="true" > > width="200" onopen="view_onOpen()"> > > > mainly when i setup resizable with designer, it not save it on xml > > file, i need to put it manually, but it change nothing > > > i also try to insert a background image with the same size than the > > view, it change nothing.... > > > and when i try to put element (edit, label button) inside a div, > > everything is invisible (div show at the top of all :-( ...) > > > any idea to help a new develloper like me? > > > thanks in advance, > > > On Oct 21, 12:06 pm, "David Lockley" <[email protected]> > > wrote: > > > > Hi Geoff, I have chatted over this with the programmers and they have > > > replied as follows, can you please advise accordingly? > > > > On the main.XML file > > > <view height="300" resizable="true" showCaptionAlways="true" width="300" > > > onopen="view_onOpen()">: > > > > We clearly set the default height and width if that is being asked to be > > > done. > > > > WE are not setting the height from any other function. > > > > So what else needs to be done? > > > > On Thu, Oct 16, 2008 at 4:59 PM, Geoff Lawson <[email protected]> > > > wrote: > > > > > Hi Terry, > > > > > You should be able to set the view's height property in main.xml to > > > > default the size. Are you setting the height from another function > > > > that might be triggering on open? > > > > > Geoff > > > > > On Wed, Oct 15, 2008 at 2:06 AM, David Lockley > > > > <[email protected]> wrote: > > > > > Hi, attached are 2 screen shots. Currently my gadgets are installed as > > > > shown > > > > > in screen shot 'example1' where the viewable area is very small. > > > > > > How do I change this so that gadgets are installed with a larger > > > > > viewable > > > > > area similar to as shown in attached example2? > > > > > > Many thanks for your assistance, I look forward to your reply. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
