Hmmm, actually, I made a few other small mistakes for it to be all view/orientation friendly. The ui.TextField in search panel and ui.Label in footerpane; did not have their flex attrs set.
If intrested, I hope this gist Fixes it. a lot of combinations to test

It's only half import, because can easily change MyDataClass, to point to some other simple data items or with a little effort use it for other things.