angular-calendar-heatmap icon indicating copy to clipboard operation
angular-calendar-heatmap copied to clipboard

Bigger tooltips get cropped

Open PedroF20 opened this issue 10 years ago • 7 comments

Do you notice the crop on the tooltip? It seems that the bigger tooltips get cropped when their height reach the svg limit. I tried to change their z-index but it didn't work out. Any ideas on how to fix this tooltip problem?

PedroF20 avatar May 12 '16 14:05 PedroF20

Ah, nice find! :) The reason that z-index does not work is that tooltip is an svg element. Honestly the proper fix would be to rewrite tooltip part into a dynamic tooltip in html. Which in turn would allow for it to go beyond the boundaries of the svg.

g1eb avatar May 13 '16 09:05 g1eb

Yeah I thought so, but it wouldn't hurt to try haha

I do not know much about dynamic html tooltips. Is it easy to implement this fix using that?

PedroF20 avatar May 13 '16 10:05 PedroF20

Guess I'll just rewrite the tooltip in html, no big deal 🐮 Just wanted to let you know that I'll be picking this up this week, stay tuned.

g1eb avatar May 28 '16 13:05 g1eb

Sure! I've been working on my back-end so in these past days I haven't been messing around with my front-end. But when you release the new version I'll try it out.

PedroF20 avatar May 28 '16 15:05 PedroF20

This is fixed now :)

g1eb avatar May 30 '16 13:05 g1eb

Edit: I was having an error but corrected it. It works 100%. Awesome! Thanks 😄

PedroF20 avatar May 30 '16 13:05 PedroF20

I guess it was initial box-sizing setting that was messing up the padding of the columns forcing spans to fall on the next line. This is fixed in the latest release.

g1eb avatar Jun 01 '16 05:06 g1eb