Bug #3679 » 0007-Account-for-border-width-when-resizing-WDialogs.patch
| 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();
|
||