jquery.sparkline icon indicating copy to clipboard operation
jquery.sparkline copied to clipboard

Tooltip problem with Flex display

Open seltix5 opened this issue 7 years ago • 3 comments

hi,

There is a problem with the tooltip when using flex body. Simple example here :

https://codepen.io/seltix/pen/pWXmEo

body {
  display: -ms-flexbox;
  display: flex;
  -ms-flex-direction: column;
  flex-direction: column;
  min-height: 100vh;
  padding: 50px;
}

<span class="sparkline">5,9,1,2,3,6,5,8,7,5,9,10</span>

jQuery(".sparkline").sparkline();

image

Apparently, changing the Tooltip createClass style position from "static" to "absolute" will solve the problem but i dont know it will cause other problems else where...

thanks.

seltix5 avatar Oct 25 '17 09:10 seltix5

How did you resolve the bug? changing position from "static" to ???, thanks!

crico avatar Mar 01 '18 13:03 crico

hello, sorry for the type error. so, I changed the CSS in this line https://github.com/gwatts/jquery.sparkline/blob/657f42892ee384691e2540fae1f04058da4145d5/src/interact.js#L139

position: static !important; => position: absolute !important;

seltix5 avatar Mar 01 '18 14:03 seltix5

Thanks for answering so quickly. My problem was really this: https://github.com/gwatts/jquery.sparkline/issues/173, but I think that it is related with Flex too.

crico avatar Mar 01 '18 15:03 crico