Werid Rendering Bug

24 views
Skip to first unread message

Damien K

unread,
Sep 22, 2025, 9:15:08 AM (yesterday) Sep 22
to Blockly
im using a webview in my java project, everything was working fine, but something i did ended up making the rendering werid. 

The second image is right after i load a json with some blocks.

The first is after i refresh it by adding another block

It also doesnt show the placeholder 10 block in the repeat.
Screenshot 2025-09-21 150112.png
Screenshot 2025-09-21 150022.png

epas...@google.com

unread,
Sep 22, 2025, 12:27:19 PM (yesterday) Sep 22
to Blockly
Hi there,

Can you provide a bit more info about what you're doing and check if there are any errors in the console? It'd be helpful to know if you're modifying Blockly in any way, share any relevant code to how you're setting up or loading the blocks, and copy any errors being logged in the webview. If it's public you could even link to the relevant files in your repo to make it easier to look at.

Cheers,
Erik

Damien K

unread,
11:26 AM (6 hours ago) 11:26 AM
to Blockly
i have managed to fix it a little bit, and now the only werid rendering is on blocks that have placeholders in them

relevant files: https://github.com/xFN10x/bedrockR/tree/master/src/main/resources/blockly
https://github.com/xFN10x/bedrockR/blob/master/src/main/java/fn10/bedrockr/windows/componets/RBlockly.java

Screenshot 2025-09-23 063555.png

epas...@google.com

unread,
2:35 PM (3 hours ago) 2:35 PM
to Blockly
I'm not seeing anything obvious as to why it doesn't work. We don't have any experience with the JavaFx WebView, but it's possible it has trouble triggering SVG layout changes which I'm guessing is why you added some explicit render calls on startup.

Hopefully someone else on the forum has gotten Blockly running in JavaFx and can provide some advice. 😓

Reply all
Reply to author
Forward
0 new messages