SmartGWT 12.1p (07/25/2023) / Firefox 102.4
When attempting to display a modal window, we get the following JavaScriptException: _11.indexOf is not a function
caused by:
Canvas_calculateStaticSize
Layout_getRemainingSpace
Layout_adaptMembersToSpace
Layout_getMemberSizes
Layout_layoutChildren
Layout_drawChildren
We create the window with the following before calling window.show():
When attempting to display a modal window, we get the following JavaScriptException: _11.indexOf is not a function
caused by:
Canvas_calculateStaticSize
Layout_getRemainingSpace
Layout_adaptMembersToSpace
Layout_getMemberSizes
Layout_layoutChildren
Layout_drawChildren
We create the window with the following before calling window.show():
Code:
Button close = new Button("Close");
close.setLayoutAlign(Alignment.CENTER);
Label label = new Label("Label");
label.setAlign(Alignment.CENTER);
label.setHeight100();
setTitle(title);
setIsModal(true);
setShowModalMask(true);
setAutoCenter(true);
setWidth(500);
setAutoSize(true);
VLayout layout = new VLayout();
layout.setMembers(label, close);
layout.setWidth100();
layout.setHeight100();
layout.setMargin(20);
addItem(layout);
Comment