ArielOctavio / jquery-dialogextend

Automatically exported from code.google.com/p/jquery-dialogextend
0 stars 0 forks source link

dialogextender changes the height of the dialog #15

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. make a dialog and change the height to auto
2. apply dialogextender
3.

What is the expected output? What do you see instead?
the dialog should retain its height:auto

What version of the product are you using? On what operating system?
1.0

Please provide any additional information below.
View request for improvement 12.

Original issue reported on code.google.com by gbon...@gmail.com on 24 Apr 2011 at 3:51

GoogleCodeExporter commented 9 years ago
I have solved this issues and added support for autoHeight.

The problem was linked to the fact that dialog({height:'auto'}) does not work. 
I have replaced this along with a few other things by $(self).css(...).

Also I have added 3 new options: autoHeight, autoWidth and autoSize
They are set to false as a default, but when set to true they allow the dialog 
to fit the height, the width or both dimension of the content respectively.

I was not sure where to enable this option, so I placed it at the end of "init" 
method where I though it fit best. This new version also contains the content 
of the edit provided to issueID#11 (to add options for close button).

Original comment by gbon...@gmail.com on 24 Apr 2011 at 5:10

Attachments:

GoogleCodeExporter commented 9 years ago

Original comment by crab.c...@gmail.com on 4 Aug 2012 at 6:10