0

Groupbox with spreadsheet closed state error

asked 2022-03-11 15:14:08 +0800

ladisliQ gravatar image ladisliQ
101 2

updated 2022-03-11 18:10:38 +0800

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

delete flag offensive retag edit

2 Answers

Sort by » oldest newest most voted
0

answered 2022-03-14 13:37:16 +0800

hawk gravatar image hawk
3250 1 5
http://hawkphoenix.blogsp... ZK Team

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.

link publish delete flag offensive edit
0

answered 2022-06-01 16:27:59 +0800

hawk gravatar image hawk
3250 1 5
http://hawkphoenix.blogsp... ZK Team

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).

link publish delete flag offensive edit
Your answer
Please start posting your answer anonymously - your answer will be saved within the current session and published after you log in or create a new account. Please try to give a substantial answer, for discussions, please use comments and please do remember to vote (after you log in)!

[hide preview]

Question tools

Follow

RSS

Stats

Asked: 2022-03-11 15:14:08 +0800

Seen: 9 times

Last updated: Jun 01 '22

Support Options
  • Email Support
  • Training
  • Consulting
  • Outsourcing
Learn More