sizing of a formInDialog

I noticed that Servoy developer remembers the size of a dialog while the app is open. After a close and re-open the sizes of the dialog are back to default.

Not much of an issue, I can play with preferences for this!

On that form I have a control with all four sides (l,t,r,b) locked to the form. When I do an openFormInDialog, close the dialog and re-open the control that control lost it’s locking until I resize the window (a little bit). It then locks itself again!

what do you mean with dialog “locks”?

sorry, locks = anchors…

Cannot reproduce your issue, could you mail/post an example?

Adding to this, application.getWindowHeight() and application.getWindowWidth() does not work on a form in dialog…
Any suggestions that may help?

“window” is the main window, a dialog is sized based on the showing From size

It’s actually a good idea to also have these methods work for a visible dialog, will be so in Servoy 2.2.1 final

Jan Blok:
It’s actually a good idea to also have these methods work for a visible dialog, will be so in Servoy 2.2.1 final

Ain’t that a nice piece of service? Thanks Jan! :D

Without testing myself and just to make sure I get this right: does this mean that getWindowHeight/Width will now return the size of a form that is shown in a dialog? So using those you can now save dialog sizes per user?

patrick:
So using those you can now save dialog sizes per user?

That’s right!