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

Tooltip: rerenders incorrectly if tooltip element content width changed #1581

Closed
dearlordylord opened this issue Dec 29, 2015 · 1 comment
Closed

Comments

@dearlordylord
Copy link

Hey,

notice how it rerenders itself if content width is changed: it starts new content width where old content left side was placed initially, making it sort of 'left-aligned', and moving upper triangle in incorrect place therefore

react-bootstrap-tooltip

Code looks like this:

render() {
    const {placement} = this.props;
    return <OverlayTrigger placement={placement} overlay={<Tooltip>{this.props.title}</Tooltip>}>
      <div className={cx(this.props.className)}>
        {this.props.children}
      </div>
    </OverlayTrigger>;
  }

No additional class-related css was applied.

@taion
Copy link
Member

taion commented Dec 29, 2015

#1438

@taion taion closed this as completed Dec 29, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants