8 messages in com.googlegroups.google-desktop-developerChanging the view height, with a twist
FromSent OnAttachments
Steve Simitzis25 Mar 2008 20:44 
Bijoy Thangaraj [API Guru]25 Mar 2008 23:21 
Steve Simitzis25 Mar 2008 23:52 
Teo26 Mar 2008 00:01 
Steve Simitzis26 Mar 2008 00:42 
Steve Simitzis26 Mar 2008 01:30 
Teo26 Mar 2008 03:17 
Steve Simitzis26 Mar 2008 14:54 
Subject:Changing the view height, with a twist
From:Steve Simitzis (satu@gmail.com)
Date:03/25/2008 08:44:50 PM
List:com.googlegroups.google-desktop-developer

So I have a gadget the occasional needs to pop up some divs above the gadget. The divs can be of variable height, as they contain text and possibly image data from the web.

To accomplish this, I was thinking I could resize the view height. This is pretty straightforward, if one uses view.resizeBy().

However, if I resize the view, the new height exists *underneath* the current height, rather than above. The only way for the new popup divs to appear above the gadget would be to resize the view, then push the gadget's main div down by the same amount that I increase the view by.

The result of this just looks weird. When new data appears, the gadget moves down, rather than the new data appearing above the gadgets.

Ideally I could move the view's y coordinate by the same number of pixels that I move the height (the maintain the appearance of the gadget staying in place), but it doesn't seem possible.