Announcement
Collapse
No announcement yet.
X
-
We were passing a string to setID that contained a space in it. We found that this also caused buttons not to work.
-
We were unable to reproduce the reported error with the provided sample code. Please provide a complete example code that reproduces the error.
However, we suspect that the issue might be in a variable you are using that hasn't been initialized. It could also be a problem with a global setting, possibly in a custom skin or a call to changeDefaults(...).
Best regards
Isomorphic Software
Leave a comment:
-
Modal Window
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():
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);
Tags: None
Leave a comment: