When implementing dialog_comment, the modal is always 200px in height - looking for the best way to resize it.
| Comment | File | Size | Author |
|---|---|---|---|
| #6 | dialog.maxheight.patch | 640 bytes | zroger |
| #4 | dialog.autoHeight.patch | 1.02 KB | zroger |
When implementing dialog_comment, the modal is always 200px in height - looking for the best way to resize it.
| Comment | File | Size | Author |
|---|---|---|---|
| #6 | dialog.maxheight.patch | 640 bytes | zroger |
| #4 | dialog.autoHeight.patch | 1.02 KB | zroger |
Comments
Comment #1
sirkitree commentedfound this:
Comment #2
moonray commentedThe auto option for height doesn't seem to work.
Comment #3
moonray commentedComment #4
zroger commentedTry this patch. It adds default options to the dialog_display command that will make sure the dialog is centered and resized if those options aren't passed in.
Comment #5
moonray commentedThe patch works to make dialog auto size. Except it sets the size to the height of the content regardless of whether it is larger than the screen size.
The ideal behavior would be that the max-height is limited to either the height of the screen (minus some blank space for aesthetic reasons, or perhaps use a percentage of the height of the screen as a measurement), or the height the content (whichever is shorter).
Comment #6
zroger commentedIt seems i already committed the last patch....
Here is a new patch that fixes the oversized content issue.
Comment #7
moonray commentedbrilliant. works like a charm.
Comment #8
zroger commentedcommitted
Comment #9
zroger commentedneeds port to 7.x
Comment #10
moonray commentedAfter some more testing I find that the auto height functionality breaks the regular width/height settings when I don't want it to automatically resize to the window's height.
Comment #11
devin carlson commentedDialog 6.x is no longer supported.