I use jQuery UI\'s new Tooltip and having trouble with figuring out how to set a maximum width of the tooltip. I guess it should be done with position, but how?
If you subscribe to Tooltip's open event, you can update the style in code:
$(".selector").tooltip({ open: function (event, ui) { ui.tooltip.css("max-width", "400px"); } });