File tree Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -177,6 +177,7 @@ export default function useAlign(
177
177
const originTop = popupElement . style . top ;
178
178
const originRight = popupElement . style . right ;
179
179
const originBottom = popupElement . style . bottom ;
180
+ const originOverflow = popupElement . style . overflow ;
180
181
181
182
// Placement
182
183
const placementInfo : AlignType = {
@@ -198,6 +199,7 @@ export default function useAlign(
198
199
popupElement . style . top = '0' ;
199
200
popupElement . style . right = 'auto' ;
200
201
popupElement . style . bottom = 'auto' ;
202
+ popupElement . style . overflow = 'hidden' ;
201
203
202
204
// Calculate align style, we should consider `transform` case
203
205
let targetRect : Rect ;
@@ -281,6 +283,7 @@ export default function useAlign(
281
283
popupElement . style . top = originTop ;
282
284
popupElement . style . right = originRight ;
283
285
popupElement . style . bottom = originBottom ;
286
+ popupElement . style . overflow = originOverflow ;
284
287
285
288
popupElement . parentElement ?. removeChild ( placeholderElement ) ;
286
289
@@ -672,6 +675,8 @@ export default function useAlign(
672
675
const offsetY4Bottom =
673
676
popupMirrorRect . bottom - popupRect . y - ( nextOffsetY + popupRect . height ) ;
674
677
678
+ debugger ;
679
+
675
680
setOffsetInfo ( {
676
681
ready : true ,
677
682
offsetX : nextOffsetX / scaleX ,
You can’t perform that action at this time.
0 commit comments