Fixes #6747 - only resize textarea in params tab.

also, take into consideration the padding to prevent unneeded scrolling.