Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8636413
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T10:13:35+00:00 2026-06-12T10:13:35+00:00

I want to shift the tooltip a few pixels to the right, so the

  • 0

I want to shift the tooltip a few pixels to the right, so the arrow is in the center of the cell where the cursor is (currently, it’s positioned at (0,0), that is, top left). This is my code:

 $("rect.cell").tooltip({
    title: "hola",
    placement: "top"
  });

and an image:
enter image description here

Ideally I’d like to do this using javascript, so I can update the number of pixels if I change the size of the cells.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-12T10:13:36+00:00Added an answer on June 12, 2026 at 10:13 am

    Here’s a simple extension of nachocab’s getPosition implementation that supports both regular HTML elements and SVG elements:

    getPosition: function (inside) {
      var el = this.$element[0]
      var width, height
    
      if ('http://www.w3.org/2000/svg' === el.namespaceURI) {
          var bbox = el.getBBox()
          width = bbox.width
          height = bbox.height
      } else {
          width = el.offsetWidth
          height = el.offsetHeight
      }
    
      return $.extend({}, (inside ? {top: 0, left: 0} : this.$element.offset()), {
        'width': width
      , 'height': height
      })
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a few hundred symlinks I want to shift location for. Right now
I've got a really big number: 5799218898. And want to shift it right to
Let's say I want to bit shift i twice to the left and store
I want to shift all the pages of an existing pdf document right one
I want to bit shift a variable and store the bit that's shifted out
When the user clicks left CTRL+ left SHIFT I want to make the entire
I simply want to shift the .icon to the right. trying to animate .icon
I want to send a textarea's data when user presses shift + enter ,
I want to shift away from Excel to Awk. I need basic mathematical operations,
The scenario is that I have a list of window handles to top level

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.