Skip to content
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

fix image preview to show correct canvas size #82027

Merged
merged 2 commits into from Oct 7, 2019

Conversation

@U-ways
Copy link
Contributor

U-ways commented Oct 6, 2019

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;
 }
U-ways added 2 commits Oct 6, 2019
…own vertically

See issue #81878
fix image preview to show correct canvas size
@mjbvz mjbvz added this to the October 2019 milestone Oct 7, 2019
@mjbvz mjbvz merged commit 095358e into microsoft:master Oct 7, 2019
2 checks passed
2 checks passed
VS Code #20191006.2 succeeded
Details
license/cla All CLA requirements met.
@mjbvz

This comment has been minimized.

Copy link
Contributor

mjbvz commented Oct 7, 2019

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 join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants
You can’t perform that action at this time.