Dlgopen (in library/dialog.js) which is used to open popup boxes all over OpenEMR needs to have a “fit” mode or something. All the UI changes are going to change the physical size in pixels of the boxes and the will open too small many times.
Currently dlgopen appears to require width and height or it goes full screen…
I’m not a javascript expert, so I’m wondering if that is a simple change to this function.
To fit to the data the resizing will have to happen after the page is loaded, so not trivial. It’s probably easier to set the size as some proportion of the main window size.
As a more interesting project, jQuery UI has a Dialog widget that looks pretty good. We might switch to their date widget too.
It may be easier to wait until after we get rid of the framesets. We switced to using JQuery Modals for a lot of stuff, but the frames got in the way of some things (like the add_edit_event popup) as I recall.
Getting rid of the frames is a big deal. For what it’s worth, it would not be much work to add some javascript to compute dialog size as a proportion of main window size. Main thing is to make a good decision as to what the rules should be.