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

[Bug] Background is not displayed on full width/height of canvas on laptops #634

Open
sbelashevskiy opened this issue Feb 27, 2025 · 3 comments
Labels
good first issue Good for newcomers uncomfy This issue does not directly impact ComfyUI

Comments

@sbelashevskiy
Copy link

On my laptop and laptop of my colleague graph background is not displayed on full width/height of canvas.
It looks like this:

Image

On my laptop window.devicePixelRatio > 1.
On desktop with monitor 24' there is not such issue.

Image

If I connect a monitor to a laptop and drag the window, the problem will appear on the laptop, but disappear on the monitor.

@webfiltered webfiltered added good first issue Good for newcomers uncomfy This issue does not directly impact ComfyUI labels Feb 27, 2025
@sbelashevskiy
Copy link
Author

Hi, @webfiltered!

I think I found where the problem is, but I can't create a branch in this repository

@sbelashevskiy
Copy link
Author

sbelashevskiy commented Feb 27, 2025

Image

Image

It resolves the issue but I don't know if this creates new one

@webfiltered
Copy link
Contributor

No worries - if you don't want to fork the repo and create a PR, we can leave that here.

But there may be an issue with either the way you're using litegraph (or the way it's used in ComfyUI frontend). Those fixes were explicitly put in place to resolve scaling issues on devices with pixel ratio > 1.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers uncomfy This issue does not directly impact ComfyUI
Projects
None yet
Development

No branches or pull requests

2 participants