Below you can see the front-view size comparison of the Nikon P7800 and Panasonic GX7. The Nikon P7800 is 4 mm narrower and 5 mm thinner than the Panasonic GX7 but it is also 7 mm taller.
The chart below depicts how two cameras compare with average dimensions of the cameras in their class.