Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

A lot of lines in Haystack editor #146

Open
dankinsoid opened this issue Oct 11, 2024 · 1 comment
Open

A lot of lines in Haystack editor #146

dankinsoid opened this issue Oct 11, 2024 · 1 comment

Comments

@dankinsoid
Copy link

dankinsoid commented Oct 11, 2024

I'm using a Haystack editor (VSCode fork) and noticed a bug, when a window scale not equal to 100% there are a lot of lines in the current editor
Maybe it's a Haystack bug, I've opened an issue for them too
Снимок экрана 2024-10-11 в 15 32 38
Снимок экрана 2024-10-11 в 15 32 46

@leodevbro
Copy link
Owner

Hello @dankinsoid, thanks so much for the donation.
Well, the bug is [I think] actually the bug of VS Code itself, or maybe the Electron engine of the VS Code, Or maybe the operating system scaling bug, or maybe combination of OS scaling and Electron scaling bug.

Here you can see that in April 2022, when they updated the Electron engine of VS Code, the horizontal lines bug fixed partially.
microsoft/vscode#137609 (comment)

I guess we should report this issue to the VS Code team and maybe also Electron team.

Short explanation:
Blockman is not able to render one full block div element, so it renders div boxes on each line and these lines touch each other to create an illusion of one big box. With normal scaling, those line-boxes touch each other perfectly, they are just CSS height: 100%; div boxes (Not exactly div boxes, but they are CSS ::before and CSS ::after boxes). so there should not be any fractional calculations, but somehow Electron has such bug, I don't know why.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants