Resizes canvas when toggling JS Console.