Open cellgit opened 1 year ago
@cellgit Bro, there is a wiser fix change the postDocumentHeight func to
const postDocumentHeight = () => {
var _body = document.body;
var _html = document.documentElement;
// var height = Math.max(
// _body.scrollHeight,
// _body.offsetHeight,
// _html.clientHeight,
// _html.scrollHeight,
// _html.offsetHeight
// );
var height = _html.offsetHeight;
console.log(height)
window?.webkit?.messageHandlers?.updateHeight?.postMessage(height);
};
@kasimok Why is my main.js compressed? Where can I see the source code?
@kasimok Why is my main.js compressed? Where can I see the source code?
it is for performance concern, you can use tools like vscode to decompress it.
When embed in tableViewCell, need update everytimes after load markdown, but onRendered callback height is before when before height is larger than new actual height, so I add the below method to get the actual height