File tree Expand file tree Collapse file tree 1 file changed +2
-5
lines changed Expand file tree Collapse file tree 1 file changed +2
-5
lines changed Original file line number Diff line number Diff line change @@ -167,11 +167,7 @@ export default function useAlign(
167
167
const doc = popupElement . ownerDocument ;
168
168
const win = getWin ( popupElement ) ;
169
169
170
- const {
171
- width,
172
- height,
173
- position : popupPosition ,
174
- } = win . getComputedStyle ( popupElement ) ;
170
+ const { position : popupPosition } = win . getComputedStyle ( popupElement ) ;
175
171
176
172
const originLeft = popupElement . style . left ;
177
173
const originTop = popupElement . style . top ;
@@ -222,6 +218,7 @@ export default function useAlign(
222
218
} ;
223
219
}
224
220
const popupRect = popupElement . getBoundingClientRect ( ) ;
221
+ const { height, width } = win . getComputedStyle ( popupElement ) ;
225
222
popupRect . x = popupRect . x ?? popupRect . left ;
226
223
popupRect . y = popupRect . y ?? popupRect . top ;
227
224
const {
You can’t perform that action at this time.
0 commit comments