()
| 34 | } |
| 35 | |
| 36 | _update() { |
| 37 | if (!this._targetNode || this._isHidden) return; |
| 38 | if (!this._targetNode.parentNode) return; |
| 39 | const rect = this._targetNode.getBoundingClientRect(); |
| 40 | rect.x += rect.width / 2; |
| 41 | let atRight = this._useRight(rect.x); |
| 42 | let atBottom = this._useBottom(rect.y); |
| 43 | if (atBottom) rect.y += rect.height; |
| 44 | this._setPosition(rect, atRight, atBottom); |
| 45 | this.requestUpdate(true); |
| 46 | } |
| 47 | |
| 48 | set data({content, positionOrTargetNode, immediate}) { |
| 49 | if (immediate) { |
nothing calls this directly
no test coverage detected