Custom Webview in explorer view placed at wrong position
See original GitHub issueDoes this issue occur when all extensions are disabled?: Yes/No
- VS Code Version: 1.59.0
- OS Version: macOs 11.4
Steps to Reproduce:
- Install the “asm-code-lens” extension from market place (v1.8.1). It will add a custom view to the explorer view.
- Load some project, e.g. a type script project, but it should not matter what.
- Got to explorer view
- You should see the “HEXADECIMAL CALCULATOR” pane there.
- Make sure there is some other pane below and expand it
- Expand the “HEXADECIMAL CALCULATOR” pane. You will see the calculator contents.
- Now expand the pane above the “HEXADECIMAL CALCULATOR”
- This makes the “HEXADECIMAL CALCULATOR” pane to be moved down
Result: The contents of the “HEXADECIMAL CALCULATOR” pane is not moved. It stays in the same position, i.e. it is now overlapping the pane above the “HEXADECIMAL CALCULATOR”.
I have a screen cast which shows the behavior:
I also noticed that everything goes fine if the pane below the “HEXADECIMAL CALCULATOR” is not expanded. See here:
Issue Analytics
- State:
- Created 2 years ago
- Reactions:2
- Comments:7 (3 by maintainers)
Top Results From Across the Web
Android WebView: handling orientation changes
Under my res folder, I have drawable-land and drawable-port to hold landscape/portrait variations, then I use R.drawable.myimagename for the ...
Read more >WebView Class (Windows.UI.Xaml.Controls) - Microsoft Learn
The display area is constrained by the Width and Height properties. To translate, scale, skew, and rotate a WebView, use the RenderTransform property....
Read more >Open custom VSCode WebView panel and focus input
#DevHack: Open custom VSCode WebView panel and focus input ... executeCommand('workbench.view.extension.frontmatter-explorer'); });.
Read more >Error Messages | Maps JavaScript API - Google Developers
Certain error conditions may also occur, which result in the display of a ... Previous versions of WebView, based on Internet Explorer, are...
Read more >Desired Capabilities - Appium
Set this capability to true to run the Emulator headless when device display is not needed to be visible. false is the default...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Hi,
I have noticed the same issue:
As far as I can see, is caused by the fact the webview is a child or the main element, not of the viewpane element. When the view pane position is updated
layoutWebviewOverElement()
indynamicWebviewEditorOverlay.ts
to move the webview to the same position as the view pane.However, the view pane is now animated, and the
layoutWebviewOverElement
is called instantly, which means the webview positition is set to where the view pane starts the animation, not where it finishes the animation.For a really basic hack, you can update the layoutWebviewOverElement method to something like this:
I think a better solution, though, may be to either anchor the webview to the view pane element so that it animates with it. Or to give the webview the details of the animation so that it can also animate in the same way.
Duplicate of #110450