I have seen that we have duplicated code for resize_the_queryTool, resize_the_erdtool, resize_the_psql, and in debugger_ui.js file. I would suggest making a common function somewhere in the utils and call that function. In the future, if we need to change the code we will have to change it in four different places.
Please resend the patch after fixing the above issue.