You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
With the changes done to the dojox/mobile/Switch for 1.10 under Issue #15076 (https://bugs.dojotoolkit.org/ticket/15076) the witch does not render anymore when placed as an always on editor inside a cell.
The problem comes from the fact that when the startup gets called, the dimensions are 0px and all the calculations the resize does become invalid and so does the css generated.
We also created a wrapper similar to editor to insert widgets in the cells and we are calling the widget startup during renderCell similar to what editor does.
Neither one of those approaches works anymore with the 1.10 Switch.
If you wrap the startup from renderCell in a timeout then the Switch renders fine
Thanks for pointing this out. This is likely happening because when insertRow is called via renderArray, the widget doesn't end up within the document flow immediately, but rather after all of the insertRow calls finish. The setTimeout ends up resolving that since then startup only gets called after the rows have been inserted into the document.
While the setTimeout will certainly work, we'll have to investigate whether we can come up with something more efficient, since setting N timeouts on every renderArray call seems less than ideal.
With the changes done to the dojox/mobile/Switch for 1.10 under Issue #15076 (https://bugs.dojotoolkit.org/ticket/15076) the witch does not render anymore when placed as an always on editor inside a cell.
Changes done to Switch: dojo/dojox@5cfae8a
The problem comes from the fact that when the startup gets called, the dimensions are 0px and all the calculations the resize does become invalid and so does the css generated.
We also created a wrapper similar to editor to insert widgets in the cells and we are calling the widget startup during renderCell similar to what editor does.
Neither one of those approaches works anymore with the 1.10 Switch.
If you wrap the startup from renderCell in a timeout then the Switch renders fine
The renderCell from our widgetWrapper based on dgrid/editor
The text was updated successfully, but these errors were encountered: