开发者

jQuery Dialog Squeeze Height

开发者 https://www.devze.com 2023-03-09 02:01 出处:网络
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开发

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

精彩评论

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