Fixes panel resizing

Authors: dbeckwith, quan1992