Skip to content

Fix webview sizing when zooming#24465

Merged
mjbvz merged 1 commit intomicrosoft:masterfrom
mjbvz:fixes-5745
Apr 11, 2017
Merged

Fix webview sizing when zooming#24465
mjbvz merged 1 commit intomicrosoft:masterfrom
mjbvz:fixes-5745

Conversation

@mjbvz
Copy link
Collaborator

@mjbvz mjbvz commented Apr 10, 2017

Fixes #5745

Bug
When zooming in or out, webview contents are not properly sized to fill their parent element

Fix
Add a layout method on the webview that manually sets the content size

@mjbvz mjbvz requested a review from bpasero April 10, 2017 20:34
@mention-bot
Copy link

@mjbvz, thanks for your PR! By analyzing the history of the files in this pull request, we identified @jrieken and @joaomoreno to be potential reviewers.

Fixes microsoft#5745

**Bug**
When zooming in or out, webview contents are not properly sized to fill their parent element

**Fix**
Add a layout method on the webview that manually sets the contents sizes
@mjbvz mjbvz added this to the April 2017 milestone Apr 10, 2017
@mjbvz mjbvz requested a review from jrieken April 10, 2017 20:40
@mjbvz mjbvz self-assigned this Apr 10, 2017
Copy link
Member

@bpasero bpasero left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seems to work, nice idea. Downside is a bit more flicker and slugginess when resizing parts.

Maybe we could make this conditional and only enable the custom layout when the workbench is actually zoomed?

@jrieken
Copy link
Member

jrieken commented Apr 11, 2017

nice. didn't now that exists. lets hope it doesn't break sql ;-)

@mjbvz mjbvz merged commit 668315e into microsoft:master Apr 11, 2017
RishabhKothaari pushed a commit to RishabhKothaari/vscode that referenced this pull request Apr 11, 2017
Fixes microsoft#5745

**Bug**
When zooming in or out, webview contents are not properly sized to fill their parent element

**Fix**
Add a layout method on the webview that manually sets the contents sizes
@github-actions github-actions bot locked and limited conversation to collaborators Mar 27, 2020
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.

Webview: apply window.zoomLevel too

5 participants