Skip to content

fix image preview to show correct canvas size - #82027

Merged
Matt Bierner (mjbvz) merged 2 commits into
microsoft:masterfrom
u-ways:master
Oct 7, 2019
Merged

fix image preview to show correct canvas size#82027
Matt Bierner (mjbvz) merged 2 commits into
microsoft:masterfrom
u-ways:master

Conversation

@u-ways

Copy link
Copy Markdown
Contributor

The image preview used to show incorrect canvas size when the editor is scaled down vertically

See issue #81878

diff --git a/extensions/image-preview/media/main.css b/extensions/image-preview/media/main.css
index 913d2b4672..0f50cef683 100644
--- a/extensions/image-preview/media/main.css
+++ b/extensions/image-preview/media/main.css
@@ -4,8 +4,8 @@
  *--------------------------------------------------------------------------------------------*/
 
 html, body {
+       width: 100%;
        height: 100%;
-       max-height: 100%;
        text-align: center;
 }

@mjbvz

Copy link
Copy Markdown
Contributor

Thanks! This came in a bit too late for the September release but will in the first VS Code 1.40 insiders and is scheduled to go out with the October release

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants