Okay, so after looking at the code again today things seem to be working! I had tested this 2ish weeks ago and then didn't get around to writing the email today, so it serves me right for not checking the latest shindig code again.
So if you are looking for stacked rpcs in your code, everything should work, and thanks to John's new test case it will stay working. Thanks John! - Cassie On Tue, Jun 9, 2009 at 11:45 AM, John Hjelmstad <[email protected]> wrote: > Hi Cassie: > Interesting scenario. The library's API should accommodate this, but to my > knowledge it hasn't been tested yet so there may be something overlooked. > > Could you paste in the code you're using to register your RPCs, initialize > gadgets.rpc, and to call adjustHeight? Also, which browser(s) are you > using? > > I'll try to come up with a gadget "tree" test to replicate this behavior. > > -John > > On Tue, Jun 9, 2009 at 11:35 AM, Cassie <[email protected]> wrote: > > > Hey guys - > > > > I am trying to get gadgets running within gadgets in my container and > > everything is working beautifully... except for rpc based functions. > > > > For example, I would like to make the dynamic height functions work for > my > > innermost gadgets. To do so I register an adjustHeight rpc method > > ("resize_iframe") inside my top gadget and end up with a stack that looks > > like this: > > > > Container - has adjustHeight handler > > - Gadget - has adjustHeight handler and also calls adjustHeight > > - Gadget within Gadget - calls adjustHeight > > > > - I would expect that when the innermost gadgets call adjustHeight, the > top > > gadget's handler will get called and the height will be adjusted. This > > works. > > - I would also expect that with the top gadget calls adjustHeight, the > > container's handler will get called and the height of the top gadget will > > be > > adjusted. This does not work. Instead, the adjustHeight call goes to the > > gadgets own handler and does not go up the stack to the container. > > > > The latter case is what is causing issues for me. Has anyone seen this > > before? Am I doing something wrong in registering my rpcs or does our > code > > just not handle this use case yet? Perhaps the dynamic height feature > impl > > needs to be changed slightly? > > > > Thanks! > > - Cassie > > >

