Hello,
I upgraded our application from 4.0p (NIGHTLY 2014-02-12) to 5.0p (NIGHTLY-2015-04-15) and during the test of the application I have the following error in console:
Maximum call stack size exceeded.
Running the code below you can repeat the issue:
To repeat the error you must digit some character in the field "item" and then press tab key.
Please note that the layout reproduce a complex layout that I have in my application.
I upgraded our application from 4.0p (NIGHTLY 2014-02-12) to 5.0p (NIGHTLY-2015-04-15) and during the test of the application I have the following error in console:
Maximum call stack size exceeded.
Running the code below you can repeat the issue:
Code:
public void onModuleLoad() {
DynamicForm pageLayout = new DynamicForm();
pageLayout.setNumCols(1);
pageLayout.setFields(getCanvasItem());
pageLayout.setColWidths("*");
pageLayout.setShowEdges(false);
Window window = new Window();
// set window properties
window.setTitle("A");
window.setWidth(400);
window.setHeight(200);
window.setAutoCenter(true);
window.setIsModal(true);
window.setShowModalMask(false);
window.setShowMaximizeButton(false);
window.setShowMinimizeButton(false);
window.setShowCloseButton(false);
// add form panel to the window
window.addItem(pageLayout);
window.show();
}
private CanvasItem getCanvasItem() {
Button button = new Button("prova");
VLayout layout = new VLayout();
layout.addMember(getForm());
layout.addMember(button);
CanvasItem item = new CanvasItem();
item.setShowTitle(false);
item.setCanvas(layout);
item.setName("pippo");
int width = 100;
Integer widthObject = 200;
if (widthObject != null) {
width = widthObject.intValue();
item.setWidth(width);
}
item.setRowSpan(1);
item.setColSpan(1);
item.setStartRow(true);
item.setEndRow(true);
return item;
}
private DynamicForm getForm() {
DynamicForm form = new DynamicForm();
form.setWidth(200);
form.setHeight(100);
TextItem item = new TextItem();
item.setTitle("item");
item.setTabIndex(0);
form.setFields(item);
return form;
}Please note that the layout reproduce a complex layout that I have in my application.