开发者

jQuery Dialog Squeeze Height

I am trying to squeeze the entire height of a dialog box I created with jQuery UI down to a height of 0px once the dialog is created. I cannot use the dialog's "height" property, and set that to开发者_开发知识库 0, as I need everything to be squished down.

Here is a watered-down version of my code. Could some one point out where I am going wrong?

$('<div class="myDialog" title="Test"></div>').dialog({
  'create' : function() {
    $(this).parent().css({
      'height' : '0'
    });
  })
});

Thank you for your time.


To get the widget do this:

$(this).dialog('widget').css({
  'height' : '0'
});

This edits the dialog as a whole.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜