Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • B bootstrap
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 263
    • Issues 263
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 114
    • Merge requests 114
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Infrastructure Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • Bootstrap
  • bootstrap
  • Issues
  • #6240
Closed
Open
Issue created Dec 12, 2012 by Administrator@rootContributor

problem with tooltip in TH

Created by: DonFelipe

since updating to bootstrap-tooltip.js v2.2.1 the tooltip in TH tags breads the table, see attached screenshot. in v2.1.1 there was never any issue no matter the HTML elements... at least on my side.

i can pin this down to the following

            $tip
                .detach()
                .css({ top: 0, left: 0, display: 'block' })
                .insertAfter(this.$element)

in the old version appendTo() was used instead of insertAfter() and everything was still fine

            $tip
                .detach()
                .css({ top: 0, left: 0, display: 'block' })
                .appendTo(inside ? this.$element : document.body)

so why the change?

it seems to be much safer and logical to use appendTo() here as it puts the tooltip inside the element it is called from

screen

Assignee
Assign to
Time tracking