| @@ 3469-3482 (lines=14) @@ | ||
| 3466 | this._lastRect = null; |
|
| 3467 | this.reflow(); |
|
| 3468 | }, |
|
| 3469 | resizeTo: function (w, h) { |
|
| 3470 | if (w <= 1 || h <= 1) { |
|
| 3471 | var rect = funcs.getWindowSize(); |
|
| 3472 | w = w <= 1 ? w * rect.w : w; |
|
| 3473 | h = h <= 1 ? h * rect.h : h; |
|
| 3474 | } |
|
| 3475 | this._layoutRect.autoResize = false; |
|
| 3476 | return this.layoutRect({ |
|
| 3477 | minW: w, |
|
| 3478 | minH: h, |
|
| 3479 | w: w, |
|
| 3480 | h: h |
|
| 3481 | }).reflow(); |
|
| 3482 | }, |
|
| 3483 | resizeBy: function (dw, dh) { |
|
| 3484 | var self = this, rect = self.layoutRect(); |
|
| 3485 | return self.resizeTo(rect.w + dw, rect.h + dh); |
|
| @@ 3411-3424 (lines=14) @@ | ||
| 3408 | this._lastRect = null; |
|
| 3409 | this.reflow(); |
|
| 3410 | }, |
|
| 3411 | resizeTo: function (w, h) { |
|
| 3412 | if (w <= 1 || h <= 1) { |
|
| 3413 | var rect = funcs.getWindowSize(); |
|
| 3414 | w = w <= 1 ? w * rect.w : w; |
|
| 3415 | h = h <= 1 ? h * rect.h : h; |
|
| 3416 | } |
|
| 3417 | this._layoutRect.autoResize = false; |
|
| 3418 | return this.layoutRect({ |
|
| 3419 | minW: w, |
|
| 3420 | minH: h, |
|
| 3421 | w: w, |
|
| 3422 | h: h |
|
| 3423 | }).reflow(); |
|
| 3424 | }, |
|
| 3425 | resizeBy: function (dw, dh) { |
|
| 3426 | var self = this, rect = self.layoutRect(); |
|
| 3427 | return self.resizeTo(rect.w + dw, rect.h + dh); |
|