Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: table toolbar popup malposition in tdesign drawer #1058

Open
wants to merge 3 commits into
base: dev
Choose a base branch
from

Conversation

YFAnt
Copy link
Contributor

@YFAnt YFAnt commented Feb 28, 2025

Copy link

changeset-bot bot commented Feb 28, 2025

🦋 Changeset detected

Latest commit: 5a15783

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
cherry-markdown Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

const containerRect = editorContainer.getBoundingClientRect();
const relativeLeft = pos.left - containerRect.left + pos.width;
const relativeTop = pos.top - containerRect.top + pos.height;
this.subBubbleTableMenu.dom.style.position = 'absolute';
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

不是特别想用绝对定位,在外层有滚动条的时候,滚动时工具栏就无法跟随滚动(比如这里

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

或者,可以加个配置项,支持配置相对定位和绝对定位

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants