7 messages in com.googlegroups.google-desktop-developerRe: view.resizable, zoom, true
FromSent OnAttachments
pop20 Jun 2008 11:12 
Teo20 Jun 2008 13:14 
pop20 Jun 2008 13:36 
Teo21 Jun 2008 09:31 
pop23 Jun 2008 06:40 
Benjamin [API Guru]23 Jun 2008 07:59 
pop23 Jun 2008 19:42 
Subject:Re: view.resizable, zoom, true
From:Teo (teom@gmail.com)
Date:06/21/2008 09:31:12 AM
List:com.googlegroups.google-desktop-developer

I don't think i understand :D Why not explicitly call the onSize/onSizing function explicitly when you change the zoom property?

On Fri, Jun 20, 2008 at 11:36 PM, pop <pop.@gmail.com> wrote:

Sorry, what I mean in my first post is onsize and onsizing, not onresize or onresizing.

onsize() and onsizeing() will not be trigged when view.resizable="zoom"

thanks,

On Jun 20, 4:15 pm, Teo <teom@gmail.com> wrote:

Hi,

have you tried with onSize and onSizing?

Thanks, Teo

On Fri, Jun 20, 2008 at 9:12 PM, pop <pop.@gmail.com> wrote:

right now, it has three options: false, true, zoom

Is there a way to switch between zoom and true dynamically?

zoom is good when gadget estate is smaller than required because the framework will auto-scale the size for the gadget.

true is good when gadget estate is larger than required because the gadget can get notified by onresize() or onresizing().

I would like to: first, set view.resizable=true, then switch view.resizable to zoom when the actual window size is smaller than a predefined value, and switch view.resizable back to true if actually window size is equal or larger than the predefined value.

I can not find a way to get the actual window size when view.resizable=zoom because neither onresize() nor onresizing() is triggered in this case.

Please advise.

Thanks,