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 tooltips margins #22301

Closed
wants to merge 1 commit into from
Closed

Conversation

IdanCo
Copy link
Contributor

@IdanCo IdanCo commented Mar 29, 2017

Summary:

As described in #21146 and #22300, and shown here, left and top tooltips exhibit inconsistencies in regards to margins.

before

Top and left tooltips sometimes ignore margins

After

All tooltips now use padding instead of margin

Technical

As shown here, top and left tooltips switches between absolute and fixed positions. No doubt this is what causes the inconsistencies, but I admit the logic behind this switch, and the reason it differs from bottom or right tooltips remains an enigma to me. It happens here, but since it's deep inside tether's logic, I tried looking for a workaround in bootstrap's code. Since the margins seems to be what causes the issue, i've successfully replaced them with paddings, while preserving the spacing by adding it to the arrow position.

Example of fix available here -
http://jsbin.com/noyitof/edit?html,css,js,output

@Johann-S
Copy link
Member

/CC @mdo

@IdanCo IdanCo force-pushed the bugfix/22300-tooltips-margins branch 3 times, most recently from aadece8 to e0af27a Compare April 13, 2017 07:57
@IdanCo
Copy link
Contributor Author

IdanCo commented Apr 13, 2017

updated jsbin - http://jsbin.com/noyitof/edit?html,css,js,output

@IdanCo IdanCo force-pushed the bugfix/22300-tooltips-margins branch from e0af27a to 6d6bf9b Compare April 24, 2017 07:56
@Johann-S
Copy link
Member

I close this PR because #22444 fixed that and will be merge on sunday.

Thank you @IdanCo

@Johann-S Johann-S closed this May 12, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants