tags:

views:

11

answers:

1

Hi,

How to set the jgrowl size to be as auto.Because if the the contents are more i thinks it wraps up the content. can we set this something like

<script>
$.jGrowl.defaults.size = 'auto';
</script>

Thanks.

+1  A: 

There does not appear to be any public methods for setting the width of the growl itself. Your best option may be to go into the css file itself, and change it from ~235px to something larger. Note that this isn't really solving a problem. In reality, causing long text to wrap is (generally speaking) the ideal behavior.

You may also be able to add some logic to the beforeOpen() method that estimates the width of an unwrapped child, and adjusts the width of that particular growl.

Jonathan Sampson