Hi,
I have a Window that contains a DynamicForm where the size of the dynamic form is unpredictable in advance.
In order to have the Window size to the contents of the form I used autoSize: true.
The problem is that when the form is big the Window height becomes bigger than the screen height. I would like in this case to limit the Window height to the screen height.
I set overflow: "scroll" on the Window to have scrollbars appear.
I tried to define maxHeight for the Window but it seems not to work.
Then I tried to explicitly setHeight on the Window comparing the height of the window to the screen height.
The problem is that getHeight() always returns 100 as the height, even if I run the code on a delayed function call, letting the Window to show fully.
I'm using v11.0p_2016-08-18/PowerEdition Deployment (built 2016-08-18)
The code for the Window is:
var win = isc.Window.create({
ID: cfg.grid.ID + "_w",
items: [form],
autoSize: true,
autoCenter: true,
overflow: "scroll",
maxHeight: util.pageSize().h-100,
dismissOnEscape: true,
isModal: true,
showModalMask: true,
title: "Title - Filtro"
});
Any help is appreciated.
Regards,
Luca
I have a Window that contains a DynamicForm where the size of the dynamic form is unpredictable in advance.
In order to have the Window size to the contents of the form I used autoSize: true.
The problem is that when the form is big the Window height becomes bigger than the screen height. I would like in this case to limit the Window height to the screen height.
I set overflow: "scroll" on the Window to have scrollbars appear.
I tried to define maxHeight for the Window but it seems not to work.
Then I tried to explicitly setHeight on the Window comparing the height of the window to the screen height.
The problem is that getHeight() always returns 100 as the height, even if I run the code on a delayed function call, letting the Window to show fully.
I'm using v11.0p_2016-08-18/PowerEdition Deployment (built 2016-08-18)
The code for the Window is:
var win = isc.Window.create({
ID: cfg.grid.ID + "_w",
items: [form],
autoSize: true,
autoCenter: true,
overflow: "scroll",
maxHeight: util.pageSize().h-100,
dismissOnEscape: true,
isModal: true,
showModalMask: true,
title: "Title - Filtro"
});
Any help is appreciated.
Regards,
Luca
Comment