Browse Source

fix: fix the problem that the automatic adjustment position is incorrect when the position is topleft (#1344)

YannLynn 2 years ago
parent
commit
466b9ef99a
1 changed files with 1 additions and 1 deletions
  1. 1 1
      packages/semi-foundation/tooltip/foundation.ts

+ 1 - 1
packages/semi-foundation/tooltip/foundation.ts

@@ -855,7 +855,7 @@ export default class Tooltip<P = Record<string, any>, S = Record<string, any>> e
                         position = this._adjustPos(position, true);
                     }
                     if (shouldReverseLeftSide && widthIsBigger) {
-                        position = this._adjustPos(position, true);
+                        position = this._adjustPos(position);
                     }
                     if (isWidthOverFlow && (isViewXEnoughSideHalf || isContainerXEnoughSideHalf)) {
                         position = this._adjustPos(position, true, 'reduce');