dfaruque / Serenity.Extra

Name of the repo says that this is an EXTRA of http://serenity.is platform
60 stars 34 forks source link

AutoFit Content Area add blank white space to the form #58

Closed reach2rv closed 3 years ago

reach2rv commented 3 years ago

Hi,

When I use _Ext.DialogBase with ExtDialog default option set to AuthofitContentArea = true; it adds white space after in the end which extends the height of form.

Can you please suggest how to get rid of it?

dfaruque commented 3 years ago

in ScriptInitialization.ts file add the following line q.DefaultEntityDialogOptions.AutoFitContentArea = false; this will change the behavior of all dialog based on _Ext.DialogBase

to change in a particular dialog do the following in yourDialog.ts

        protected get_ExtDialogOptions() {
            let opt = super.get_ExtDialogOptions();

            opt.AutoFitContentArea = false;

            return opt;
        }