Project

General

Profile

Bug #3679 » 0007-Account-for-border-width-when-resizing-WDialogs.patch

Bruce Toll, 11/25/2014 10:39 PM

View differences:

src/js/WDialog.js
function wtResize(ignored, w, h) {
if (w > 0)
layoutContainer.style.width = w + 'px';
layoutContainer.style.width = w +
WT.parsePx($(layoutContainer).css('borderLeftWidth')) +
WT.parsePx($(layoutContainer).css('borderRightWidth')) + 'px';
if (h > 0)
layoutContainer.style.height = h + 'px';
layoutContainer.style.height = h +
WT.parsePx($(layoutContainer).css('borderTopWidth')) +
WT.parsePx($(layoutContainer).css('borderBottomWidth')) + 'px';
self.centerDialog();
(2-2/4)