@internal
(event: MouseEvent)
| 170 | |
| 171 | /** @internal */ |
| 172 | protected _resizeStart(event: MouseEvent): DDResizable { |
| 173 | this.sizeToContent = Utils.shouldSizeToContent(this.el.gridstackNode, true); // strick true only and not number |
| 174 | this.originalRect = this.el.getBoundingClientRect(); |
| 175 | this.scrollEl = Utils.getScrollElement(this.el); |
| 176 | this.scrollY = this.scrollEl.scrollTop; |
| 177 | this.scrolled = 0; |
| 178 | this.startEvent = event; |
| 179 | this._setupHelper(); |
| 180 | this._applyChange(); |
| 181 | const ev = Utils.initEvent<MouseEvent>(event, { type: 'resizestart', target: this.el }); |
| 182 | if (this.option.start) { |
| 183 | this.option.start(ev, this._ui()); |
| 184 | } |
| 185 | this.el.classList.add('ui-resizable-resizing'); |
| 186 | this.triggerEvent('resizestart', ev); |
| 187 | return this; |
| 188 | } |
| 189 | |
| 190 | /** @internal */ |
| 191 | protected _resizing(event: MouseEvent, dir: string): DDResizable { |
no test coverage detected