Roku Developer Program

Developers and content creators—a complete solution for growing an audience directly.
cancel
Showing results for 
Search instead for 
Did you mean: 
g-se
Level 7

Postergrid images missing after visible true/false change

The app that I'm building has basically 2 different postergrids. The first is basically a main menu, which when an item is selected, it loads the second. The first postergrid I then hide by setting the visibility to false, and the newly loaded one I set to true. All that is working fine.
However, occasionally, when I go back to the main menu (by swapping visibilities), sometimes the images are no longer showing for the original postergrid. Do I need to reload the content before setting it visible again? Is it a memory issue? Is there some other function I need to call to force it to redraw the posters?
Any help would be appreciated.

* also, this doesn't happen all the time, and usually when it does, it seems like the postergrid content is still loaded, because the focus ring moves through the "invisible" boxes like they're still there, just no image..
0 Kudos
1 Reply
joetesta
Level 10

Re: Postergrid images missing after visible true/false change

Try setting loadheight and loadwidth for the posters and see if it makes a difference?
aspiring
0 Kudos