()
| 112 | } |
| 113 | |
| 114 | setFrameDim() { |
| 115 | let width; |
| 116 | let height; |
| 117 | this.eFrame.style.bottom = 0; |
| 118 | if (this.vDialog) { |
| 119 | ({height} = this.pgpRange.getBoundingClientRect()); |
| 120 | ({width} = this.pgpElement.parentElement.getBoundingClientRect()); |
| 121 | if (!width || !height) { |
| 122 | return; |
| 123 | } |
| 124 | // less 1px border and 2 pixel box-shadow |
| 125 | width -= 3; |
| 126 | this.vDialog.style.width = `${width}px`; |
| 127 | this.vDialog.style.height = `${height}px`; |
| 128 | } else { |
| 129 | ({height} = this.pgpSigRange.getBoundingClientRect()); |
| 130 | ({width} = this.pgpRange.getBoundingClientRect()); |
| 131 | } |
| 132 | if (!width || !height) { |
| 133 | return; |
| 134 | } |
| 135 | this.eFrame.style.width = `${width}px`; |
| 136 | this.eFrame.style.height = `${height}px`; |
| 137 | } |
| 138 | } |
no outgoing calls
no test coverage detected