PIE : bring back top and bottom gravity

add workaround to turn off navigationbar if gravity set to bottom
Expanded Desktop : fix invalid int value