8 messages in com.googlegroups.google-desktop-developerRe: Changing the view height, with a ...| From | Sent On | Attachments |
|---|---|---|
| Steve Simitzis | 25 Mar 2008 20:44 | |
| Bijoy Thangaraj [API Guru] | 25 Mar 2008 23:21 | |
| Steve Simitzis | 25 Mar 2008 23:52 | |
| Teo | 26 Mar 2008 00:01 | |
| Steve Simitzis | 26 Mar 2008 00:42 | |
| Steve Simitzis | 26 Mar 2008 01:30 | |
| Teo | 26 Mar 2008 03:17 | |
| Steve Simitzis | 26 Mar 2008 14:54 |
| Subject: | Re: Changing the view height, with a twist![]() |
|---|---|
| From: | Teo (teom...@gmail.com) |
| Date: | 03/26/2008 03:17:52 AM |
| List: | com.googlegroups.google-desktop-developer |
You can't change the view.y coordinate. What you're saying could be solved by adding an empty space at the top, but it would be pretty annoying if the gadget will be used in the sidebar, since that space will always be visible. But can you share more about your gadget? In cases like this it should be possible to achieve the goal with minor changes.
It seems to me (just seems :) that you could make use of 'Details View's. Here's an article about them: http://code.google.com/support/bin/answer.py?answer=81127&topic=13819
On Wed, Mar 26, 2008 at 10:30 AM, Steve Simitzis <satu...@gmail.com> wrote:
Okay, I see what you're showing me. If you click on the numbers "0" "2" "4" "6" "8", the gadget changes height. However, this isn't what I'm looking for. The new height you're adding or subtracting is from the *bottom* of the gadget. I want to add height to the *top* of the gadget.
Is this possible?
If I could control everything, I would add height to the view, then move the gadget's main div by the same number of pixels, then move the view's y coordinate up by the same number of pixels. I can do all of this except for moving the view's y coordinate. Is there another way to go about adding height to the top of the gadget?
On Mar 26, 12:42 am, Steve Simitzis <satu...@gmail.com> wrote:
Does the gadget change height on its own, or does it require the user to actively resize it? I'm not seeing any automatic height changing.
On Mar 26, 12:01 am, Teo <teom...@gmail.com> wrote:
Hi,
my Tabbed ToDo List gadget changes height more visibly:
http://desktop.google.com/plugins/i/tabbedtodolist_teomi.html?hl=en
(through the number buttons)
Thanks, Teo
On Wed, Mar 26, 2008 at 8:53 AM, Steve Simitzis <satu...@gmail.com>
wrote:
hmmmm are you sure about that? I'm looking at the gadget now, and it doesn't change its height at all.
On Mar 25, 11:21 pm, "Bijoy Thangaraj [API Guru]" <jspl...@gmail.com> wrote:
Hi Steve,
You can check out the source of Teo's Daisy-gadget:
http://desktop.google.com/plugins/i/daisygadget_teominat.html?hl=en
That resembles closely with what you intend to do.
Thanks and Regards, Bijoy Thangaraj
On Mar 26, 8:45 am, Steve Simitzis <satu...@gmail.com> wrote:
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.
Is there a way to achieve this?
-- 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




