Bug 480427

Summary: Preview somtimes displays incorrectly with scaling
Product: [Applications] Skanlite Reporter: Mohammed Khoory <the.9a3eedi>
Component: generalAssignee: Kåre Särs <kare.sars>
Status: REPORTED ---    
Severity: normal    
Priority: NOR    
Version First Reported In: 23.08.4   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:
Attachments: Skanlite screenshot after startup with 150% scaling
Skanlite screenshot after startup with 200% scaling
Skanlite screenshot after startup with 100% scaling

Description Mohammed Khoory 2024-01-28 11:20:28 UTC
Created attachment 165304 [details]
Skanlite screenshot after startup with 150% scaling

SUMMARY
If the desktop has scaling enabled, and you start skanlite, the preview pane doesn't look like it's being displayed correctly. However, after previewing something, it does get displayed properly centered and scaled down. 

This isn't a very major issue, because the app is still usable, but it really gives a janky feel to the app.

STEPS TO REPRODUCE
1. Set scaling to something higher than 100% (I've testing 150% and 200%)
2. Start skanlite

OBSERVED RESULT
The preview pane is not centered correctly

EXPECTED RESULT
The preview pane should be displayed and centered correctly, just like how it does after you perform a preview.


SOFTWARE/OS VERSIONS
Windows: 
macOS: 
Linux/KDE Plasma: Manjaro Linux
KDE Plasma Version: 5.27.10
KDE Frameworks Version: 5.113.0
Qt Version: 5.15.12

ADDITIONAL INFORMATION
I am using Wayland usually with 150% scaling. I am not sure if this issue occurs in X11. When writing this report, I was closing the app, changing the scaling settings, and then started the app again without rebooting.
Comment 1 Mohammed Khoory 2024-01-28 11:21:12 UTC
Created attachment 165305 [details]
Skanlite screenshot after startup with 200% scaling
Comment 2 Mohammed Khoory 2024-01-28 11:21:53 UTC
Created attachment 165306 [details]
Skanlite screenshot after startup with 100% scaling

As a reference, this is what I expect to see working correctly when scaling is enabled.