h
h copied to clipboard
JavaScript tooltip size is wrong when text too short
@robertknight said:
The solution might be to move the tooltip's black background from the
.tooltip
element, to the actual label inside it, since the label is an inline element which will grow to fit its content.Whereas block-level elements are sized horizontally to fit their containing block