how do you get qTip to have proper width when loading content via ajax

Posted by ooo on Stack Overflow See other posts from Stack Overflow or by ooo
Published on 2010-05-15T16:21:13Z Indexed on 2010/05/15 16:24 UTC
Read the original article Hit count: 235

Filed under:
|
|
|

i have an asp.net mvc site and here is a dynamic tooltip using qTip

Here is my code:

$('a.showNutritionInfo').each(function() {

    $(this).qtip({
        content: {
        text: '<img src="../../images/ajax-loader1.gif" alt="" />',
        style: { width: 450 },
        url: '/Tracker/NutritionInfo/' + $(this).attr('id'),
        method: 'get'
        }
    });
});

this works perfectly EXCEPT the width attribute listed above is ignored. No matter what i put in that width attribute, i get the same size width tooltip which is about half of the width that i need. the height is perfectly fine.

any ideas? is this a bug in the product ?

© Stack Overflow or respective owner

Related posts about jQuery

Related posts about asp.net-mvc