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
large images are not scaled to stay inside diff panel #2480
Comments
😱 I think we should fix this for 1.0. |
Huh, interestingly I can't reproduce this on Mac |
Hrm, I can't reproduce this in my Windows 8 VM either. Gonna try getting a Windows 10 VM running. |
I'm having VMWare troubles with Windows 10, so I'm gonna unassign myself until I'm able to reproduce it. |
I'm unable to reproduce this issue. Are you still having it? |
Was just looking at this too, can't reproduce either. Tested in Windows 10. |
Gonna 👢 this until we can reproduce it. |
I uploaded git project here, that reproduces the problem. @tierninho please open the issue again, till fixed. |
@PragmaticEd thank you so much for taking the time to create a reproduction repository. Unfortunately I wasn't able to reproduce this using the repo provided on macOS, haven't tested it on Windows 10 yet. @PragmaticEd Are you using multiple monitors or different DPI scaling settings by any chance? |
@PragmaticEd thanks for checking in and adding your project. As this issue is still open, we will be tracking it here. Your #3075 issue is noted. |
@tierninho Yes, that might be it. I have 4k screen, set to 4k resolution and 200% scaling. Just tested. By setting the scaling to 100%, this problem goes away. So the problem is with scaling. I tried disabling the scaling for the app, like so: http://take.ms/jbXkW That, usually, fixes the problem for most other apps, but not this time.. |
Excellent. I think I've got a good sense of what's going on then. The image diff uses a |
I have a retina screen and I’ve encountered this with (tall?) images. |
#5215 was another report that seems related to this issue
|
I use 125% zoom and I have this issue very frequently in an image-heavy repository. It can cover the branch/fetch buttons in the changes view, and always covers the diff view options in the history view. I have to resize down to 100% to work with this repository. |
I am still able to reproduce this in 1.5.0 |
I've been able to reproduce this on Windows 10 and I think it's some combination of scaling and screen real-estate. This is the commit I'm working with (thanks @AndyThePie for the setup): 12beesinatrenchcoat/pizzaRPG-repo@0233f1c At 100% scaling on a 1440x900px display, the image diff is scaled down to fit into the space: At 200% scaling on a 2560x1440px display, the image is no longer scaled down: Probably requires some refreshing of what the image diff controls are rendering and whether they care about the available space... |
Description
With the new image diff improvements in #2383 there's a scenario where a large image is drawn outside the diff panel. We shouldn't do this.
Version
GitHub Desktop version: current
master
e.g. 82b1d23OS version: Windows 10
Steps to Reproduce
2-up
selected (but the others show this problem too)Expected behavior:
Actual behavior:
Reproduces how often: 100%
The text was updated successfully, but these errors were encountered: