Fixed: panelWidth calculation on mobile

This code will be replaced once enableAuto[Width|Height] are removed. For now, fixing a bug wherein panelHeight/Width on mobile was accidentally set to 0, causing the inner div to be empty.