Updated panel layout.js to always put panel to bottom if free