--- order: 3 title: zh-CN: 自动调整位置 en-US: Adjust placement automatically debug: true --- ## zh-CN 气泡框不可见时自动调整位置 ## en-US Adjust placement automatically when tooltip is invisible. ```tsx import { Button, Tooltip } from 'antd'; import React from 'react'; const wrapStyles: React.CSSProperties = { overflow: 'hidden', position: 'relative', padding: '24px', border: '1px solid #e9e9e9', }; const App: React.FC = () => (
trigger.parentElement!} >
trigger.parentElement!} autoAdjustOverflow={false} >
); export default App; ```