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