-
FEATURED COMPONENTS
First time here? Check out the FAQ!
zk version: 9.6.2 keikai version: keikai-oss 5.0.0
Browser zoom with 125%, enter something in the spreadsheet. Following exception throw: java.lang.ClassCastException: class java.lang.Double cannot be cast to class java.lang.Integer (java.lang.Double and java.lang.Integer are in module java.base of loader 'bootstrap') at io.keikai.ui.au.in.TextHeightCommand.process(TextHeightCommand.java:58) at io.keikai.ui.Spreadsheet.service(Spreadsheet.java:6154) ...
It's caused by a browser sends a height in double for 90% zoom level when sending onZSSTextHeight event to a server. You can override js to fix it.
/**
* Purpose: convert a double (height) to an integer
* Based on version: 5.0.0
*/
zk.afterLoad('zss', function() {
var exWidget = {};
zk.override(zss.SSheetCtrl.prototype, exWidget, {
_sendOnTextHeight: function (row, col, height) {
var wgt = this._wgt;
height = Math.floor(height);
wgt.fire('onZSSTextHeight', {sheetId: this.serverSheetId, row: row, col : col, height: height}, {toServer: true});
},
});
});
Asked: 2023-09-12 15:27:12 +0800
Seen: 3 times
Last updated: Sep 14
Some feedback about ZK SpreadSheet
Cannot add to Eclipse the ZK SPreadsheet jars
Zk Spreadsheet: Date in cells are displayed as GMT+0 while my locale is GMT+8
I want cancel the page part refresh ,how?
Spreadheet and pagination problem
Zk spreadsheet 2.0 beta3 - row copy/cut and paste not working
Zk spreadsheet - cell values changing automatically
how to make spreadsheet row un-editable & freeze???