Skip to content
Browse files

Handle super-long unbroken strings

If your text is long and doesn't have spaces, the tooltip just cut it off 
and the right margin would overflow. Now it wraps anyway which looks a bit 
  • Loading branch information...
1 parent 8cd3dbc commit 59f903c7ce208b9c7190f95a6f30bcc22995e793 hitsthings committed Sep 7, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/stylesheets/tipsy.css
2 src/stylesheets/tipsy.css
@@ -1,4 +1,4 @@
-.tipsy { font-size: 10px; position: absolute; padding: 5px; z-index: 100000; }
+.tipsy { font-size: 10px; position: absolute; padding: 5px; word-wrap: break-word; z-index: 100000; }
.tipsy-inner { background-color: #000; color: #FFF; max-width: 200px; padding: 5px 8px 4px 8px; text-align: center; }
/* Rounded corners */

0 comments on commit 59f903c

Please sign in to comment.
Something went wrong with that request. Please try again.