philiphendry / ExcalidrawInVisualStudio

A basic integration of Excalidraw diagramming tool in a Visual Studio extension.
MIT License
1 stars 0 forks source link

Excalidraw window overlays pinned windows #22

Open reflector88 opened 2 weeks ago

reflector88 commented 2 weeks ago

Description Pinned windows are covered by the Excalidraw window when they are opened. Unpinned windows work fine.

Expected Behavior Pinned window should overlay the Excalidraw window.

Actual Behavior The Excalidraw window overlays the pinned window.

Screenshots Screenshot 2024-06-17 145836

Environment

philiphendry commented 2 weeks ago

Thanks @reflector88 , appreciate the heads up. The problem appears to be with the WebView2 control and how it's rendering. I test swapped out the WebView2 for just a WPF button and, as expected, the rendering is fine:

image

I think it's something to do with the fact that WebView2 is rendering using the hwnd but that needs some more research.

As an alternative I tried swapping out the WebView2 for CefSharp and this seemed to work but the size of the extensions vsix file had increased to 200mb (after I manually deleted some unnecessary bits) because it requires bundling CefSharp - so I'm going to scratch that idea!!