7 messages in com.googlegroups.google-desktop-developerRe: view.resizable, zoom, true| 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,
Pop
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,
Pop
-- Teo (a.k.a. Teodor Filimon, Teominator) Site -www.teodorfilimon.com|Blog -www.teodorfilimon.blogspot.com GMT +2
-- Teo (a.k.a. Teodor Filimon, Teominator) Site -www.teodorfilimon.com| Blog -www.teodorfilimon.blogspot.com GMT +2
--~--~---------~--~----~------------~-------~--~----~
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 Goog...@googlegroups.com
To unsubscribe from this group, send email to
Goog...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/Google-Desktop-Developer?hl=en
-~----------~----~----~----~------~----~------~--~---




