i have set a gridlayout with 3 column in a form. Each cell has a button set as below.
findLiveTraffic(f).setIcon(liveTraffic);
findLiveTraffic(f).getAllStyles().setBgColor(0x33739f);
findReports(f).setIcon(trafficReport);
findReports(f).getAllStyles().setBgColor(0x33739f);
and so on.
It works great when i view it in portrait and then if i swap to landscape too, layout fits fine. But if i first view the app in landscape mode when it starts and then to portrait, the buttons and its icon are scaled out of proportion in the portrait ( the landscape is only fine).
first viewed in landscape:
now in portrait:
However if i view it in portrait first when the app starts it works fine in both view. How can i fix it?

