-
FEATURED COMPONENTS
First time here? Check out the FAQ!
Hello all
We upgraded keikai from 5.2.0 to 5.9.0 recently and now we have troubles with spreadsheet in groupbox.
<groupbox style="padding:10px;" open="false"
visible="@load('INT' eq vm.sheetSetting.typeSheet)">
<caption iconSclass="z-icon-folder-open-o" label="Show"
style="vertical-align:middle; font-weight:bold;"/>
<button id="fullScreenButton" label="Fullscreen" onClick="@command('toFullScreenMode')" visible="false"/>
<spreadsheet id="ss" width="95%" showAddRow="true" showAddColumn="true" height="500px"
showToolbar="true" showFormulabar="true" showContextMenu="false"
onCellRightClick="@command('showSsContextMenu')"/>
</groupbox>
After open page with this groupbox we have error: Failed to mount: Cannot read properties of undefined (reading 'height'). Also scrollbar is not worked.
Errorline in zss.wpd
zss.Spreadsheet.scrollWidth=zss.Spreadsheet.scrollHeight=self._scrollbar.axis.x.scrollbar.el.parentElement.getClientRects()[0].height
We have this error only if open="false" and we haven't if open="true"
I tried to use panel besides groupbox and had the same error.
So what should I do with this error?
Best Regards, Vlad
This is a known bug, please read https://tracker.zkoss.org/browse/KEIKAI-573
you can apply one of the 2 workarounds which suits your case. I think <custom-attributes org.zkoss.zul.client.rod="true"/>
would be the easiest one.
The fix/feature for https://tracker.zkoss.org/browse/KEIKAI-573 is now available for testing purposes in the latest FL version.
If you are using maven/gradle, please update the Keikai dependency version to 5.10.0.FL.20220531-Eval in your build script (e.g. pom.xml).
Asked: 2022-03-11 15:14:08 +0800
Seen: 9 times
Last updated: Jun 01 '22