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:pop (pop.@gmail.com)
Date:06/23/2008 06:40:57 AM
List:com.googlegroups.google-desktop-developer

:-), Let me re-state my question.

This is what I want to achieve: At first, gadget is docked, view.resizable=true, original size = (Ow, Oh) 1. when users enlarge the gadget, do nothing 2. when users shrink the gadget, say, less than (Ow,Oh), switch view.resizable = zoom now view.resizable=zoom, and users may enlarge the gadget again, say, larger than (Ow,Oh), and at this point, I would like to switch back to view.resizable=true The difficulty is when view.resizable=zoom, neither onsize() nor onresizing() will be triggered.

thanks,

On Jun 21, 12:31 pm, Teo <teom@gmail.com> wrote:

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

Thanks, Teo

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,

Pop

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,