Bug #3679 » 0009-Fix-WDialog-resize-with-bottom-or-right-position.patch
src/js/Resizable.js | ||
---|---|---|
var dx = xy.x - downXY.x, dy = xy.y - downXY.y, overflow = 0;
|
||
var p_width = WT.px(el, 'width');
|
||
var p_height = WT.px(el, 'height');
|
||
var vw = Math.max(iwidth + dx, minwidth + (iwidth - cwidth));
|
||
el.style.width = vw + 'px';
|
||
var vh = Math.max(iheight + dy, minheight + (iheight - cheight));
|
||
el.style.height = vh + 'px';
|
||
if (el.style.left === 'auto')
|
||
el.style.right = (WT.px(el, 'right') - (vw - p_width)) + 'px';
|
||
if (el.style.top === 'auto')
|
||
el.style.bottom = (WT.px(el, 'bottom') - (vh - p_height)) + 'px';
|
||
if (handler)
|
||
handler(vw, vh);
|
||
}
|
- « Previous
- 1
- 2
- 3
- 4
- Next »