1.7 Alpha Window initial size open is wrong if browser window not max
If you have an OPV "screen" (eg Patients|Medical Records - or any 'base' screen) open and the browser window is reduced from being maximised, the OPV happily resizes the "screen".
However, if you now open a "window" (eg a Select window by pressing the Select button) then the window is opened as though the browser window in maximised, and as a result, the bottom buttons (eg the OK and Cancel buttons in the case of the select window) may not be displayed.
The screen shot below is taken of the whole of the 1600x900 screen of my laptop. As you can see the bottom buttons of the select window are missing.
I think that what is happening is that for the new window (select in this case), its initial size is being calculated from the screen size of the display rather than that of the current browser window.
Regards. Tim G
Re: 1.7 Alpha Window initial size open is wrong if browser ...
At the time when the echo2 web framework first came out, there wasn't a cross-browser way to determine the size of the content area of the browser, so the only thing it provides is the client screen resolution.
It would be possible to fork echo2 and implement this, but I'd prefer to upgrade to echo3, which appears to provide the information.
Re: 1.7 Alpha Window initial size open is wrong if browser ...
Tim - since I would appear to be the first to bring this up, I suspect that nobody else has complained because they use the browser window maximised all the time, and thus it is not a problem. However, for me in a development environment with a dozen or more windows open it is common to run the browser not maximised. So z priority.
However, if the frame work only gives you the screen resolution, how do you get the 'base' (eg Patients|Medical Records) displays correct? As you can see in the screen shot below, even though the browser window is pulled down in size, the medical records display is nicely done with the bottom buttons showing. However, if I now press Select, the select window display is screwed with the bottom buttons missing.
Regards, Tim G
Re: 1.7 Alpha Window initial size open is wrong if browser ...
The buttons display correctly as they are offset from the bottom of the browser. You can verify this by resizing the browser window.
The popup dialog size is determined by the screen size, so if the browser window is too small they will overflow the available space.
-Tim