Roku Developer Program

Developers and content creators—a complete solution for growing an audience directly.
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Level 7

boundingRect() call prevents key events

I have a graph scene application which launchs a Scene with a custom Group primarily visible.
Within this Group, I have to call boundingRect() and localBoundingRect() on an internal LayoutGroup in order to centralize it, then I set focus on a ButtonGroup (which is a child of the LayoutGroup).
My problem is that calling these functions is preventing any key events from being caught. I tried commenting just these lines and the key events be fine, though the layout is messed up unless I call them to calculate the positions I need.
0 Kudos