Cleaned up panel size updates.
Merge pull request #147 from tsherif/panel-size

Cleaned up panel size updates.