(val)
| 2886 | |
| 2887 | setSize: function(width, height) { |
| 2888 | function interpret(val) { |
| 2889 | return typeof val == "number" || /^\d+$/.test(String(val)) ? val + "px" : val; |
| 2890 | } |
| 2891 | if (width != null) this.display.wrapper.style.width = interpret(width); |
| 2892 | if (height != null) this.display.wrapper.style.height = interpret(height); |
| 2893 | this.refresh(); |