Roku Developer Program

Join our online forum to talk to Roku developers and fellow channel creators. Ask questions, share tips with the community, and find helpful resources.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
jnth7n
Visitor

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