Fix calculation of pane width

jQuery innerWidth includes element padding, so adding padding to innerWidth value gives incorrect pane width.
jQuery outerWidth includes both element and border, so account for border width in pane width calculations.