Commit f349ff05 authored by Joël Quenneville's avatar Joël Quenneville

Explicitly set auto width for tooltip

c3's tooltip depends on the default behavior for table table width. However, site stylesheets and CSS frameworks will often change the default table width. This can completely break the rendering of the tooltip (e.g. when table width is set to 100%, the tooltip will stretch from a left position in the negative thousands all the way to the right of the chart). Explicitly setting `width:auto;` for the tooltip allows c3 to play nicely with CSS frameworks and site stylesheets.
parent 5c918985
......@@ -160,6 +160,7 @@
border-spacing:0;
background-color:#fff;
empty-cells:show;
width:auto;
-webkit-box-shadow: 7px 7px 12px -9px rgb(119,119,119);
-moz-box-shadow: 7px 7px 12px -9px rgb(119,119,119);
box-shadow: 7px 7px 12px -9px rgb(119,119,119);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment