With many sites leveraging jQuery UI, there are some major shortcomings that have to be overcome because jQuery UI does not support responsive design and there's a longstanding bug when maxWidth
is used in conjunction with width:'auto'
.
So the question remains, how to make jQuery UI Dialog responsive?
No need for jQuery or Javascript. CSS solves everything for this.
This is my project solution for a responsive jquery dialog box. Default width and height, then max width and height for as small as the browser shrinks. Then we have flexbox to cause the contents to span the available height.
Fiddle: http://jsfiddle.net/iausallc/y7ja52dq/1/EDIT
Updated centering technique to support resizing and dragging
Fiddle: http://jsfiddle.net/iausallc/y7ja52dq/6/