Bug 453574

Summary: Resized image to be fit to height and width
Product: [Applications] Falkon Reporter: genghiskhan
Component: generalAssignee: David Rosca <nowrep>
Status: RESOLVED NOT A BUG    
Severity: minor CC: vincenzo.romano
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Arch Linux   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:
Attachments: full size
partially resized
Userscript as a temporary fix
Userscript as a temporary fix. Works only when 'cursor' is present. We can check the viewport against the image, but it will be too much for this userscript because it was made for demonstration
Script include checker background to notice transparency

Description genghiskhan 2022-05-09 13:19:34 UTC
Created attachment 148676 [details]
full size

Resized image is never fit .

I think this is a bug, because in most, if not all, of the web rowsers I've used, the behaviour I expect is the one that they implement.
Comment 1 genghiskhan 2022-05-09 13:20:03 UTC
Created attachment 148677 [details]
partially resized
Comment 2 genghiskhan 2022-05-09 13:21:14 UTC
That's to say, scrollbars must not be seen when image is resized and fit to window
Comment 3 genghiskhan 2022-05-10 13:53:02 UTC
EnzoR
2022-05-10 10:59:06 UTC
https://bugs.kde.org/show_bug.cgi?id=452818

> Finally, @genghiskhan@gmx.ca, what's wrong with contents not fitting the screen area and requiring a scroller widget?

It's fine.  I just expect it to entirely fit and consequently see no scrollers.
Comment 4 0BADC0DE 2022-05-10 14:57:40 UTC
(In reply to genghiskhan from comment #3)
> EnzoR
> 2022-05-10 10:59:06 UTC
> https://bugs.kde.org/show_bug.cgi?id=452818
> 
> > Finally, @genghiskhan@gmx.ca, what's wrong with contents not fitting the screen area and requiring a scroller widget?
> 
> It's fine.  I just expect it to entirely fit and consequently see no
> scrollers.

I think you are cross-posting.
Comment 5 genghiskhan 2022-05-23 09:29:40 UTC
(In reply to EnzoR from comment #4)
> 
> I think you are cross-posting.

I did.  I was a misunderstanding.
Comment 6 genghiskhan 2023-03-14 14:32:29 UTC
From console:
element.style {
    -webkit-user-select: none;
    margin: auto;
    cursor: zoom-in;
}

Please add this:
height: 100vh; // 100% view height
Comment 7 genghiskhan 2023-03-14 14:34:45 UTC
Correction!

Please add these:
height: 100vh;
width: auto; // To keep proportion
Comment 8 genghiskhan 2023-03-16 20:14:17 UTC
Created attachment 157338 [details]
Userscript as a temporary fix
Comment 9 genghiskhan 2023-03-16 20:37:59 UTC
Created attachment 157339 [details]
Userscript as a temporary fix. Works only when 'cursor' is present.  We can check the viewport against the image, but it will be too much for this userscript because it was made for demonstration
Comment 10 genghiskhan 2023-03-17 08:54:55 UTC
Created attachment 157353 [details]
Script include checker background to notice transparency

I think this is my final attempt. It is not perfect
Comment 11 genghiskhan 2023-03-17 12:39:21 UTC
There's no problem with Falkon.
This issue happens because default zoom on page is set to more than 100%