The Markdown viewer renders incorrectly after modifying the screen scaling factor.

Open
#1,956 0 comments 4 reactions 0 assignees View on GitHub

Maintainers usually reply within 4 days

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
58/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Quiet
Tech stack
csharp
Domain
desktop

Research direction

Start by reproducing the issue on Windows 11 with the Markdown viewer while changing the screen scaling factor between previews. Trace the Markdown viewer's webview sizing and scaling handling; done means the webview display area fits the window after the scaling factor changes, while confirming the Image viewer remains unaffected.

Written by the indexing model from the issue text.

Description

bug

Describe the bug
The Markdown viewer renders incorrectly after modifying the screen scaling factor.

To Reproduce
Steps to reproduce the behavior:

  1. Go to 'Windows11/Settings/System/Screen Scaling'
  2. Click on '150%'
  3. Run QuickLook
  4. Preview some markdown file, works fine here.
  5. Go to 'Windows11/Settings/System/Screen Scaling'
  6. Change to other values like '125%'
  7. Preview same markdown file, the display area is smaller than window area.

Expected behavior
webview display area should fit the window

Desktop (please complete the following information):

  • OS Version: Windows 11 25H2
  • QuickLook Version: MsStore 4.5.0 UWP

Screenshots and Exception Log

Should be:

Image

But:

Image

Besides, Image viewer works fine

Dominant language
C#
Stars
25.8k
Forks
1.4k
Avg merge
3d 19h
Merged PRs (30d)
3

Getting set up

  • No Dockerfile or Docker Compose file
  • Has a pull request template
  • No contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from QL-Win/QuickLook

All issues in QL-Win/QuickLook

Similar issues

More C# issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.