Below you can see the front-view size comparison of the Nikon P7800 and Panasonic GX8. The Nikon P7800 is 14 mm narrower and 13 mm thinner than the Nikon P7800 but they have the same height of 78 mm.
The chart below depicts how two cameras compare with average dimensions of the cameras in their class.