Skip to content

Excel Addin -> Custom Pane with Html -> Dragging between 2 screens with different resolutions misplaces the pane content #2386

Closed
@shlomizeevy

Description

@shlomizeevy

In my Excel Addin project (c#) I created a custom pane, which uses winfrom control, which hosts an html page using WebView2.

When I drag the Excel app between 2 different screens, with different resolutions the pane html content seems to go out of place:

image

When I use a winform control without hosting an html page, this doesn't happen.

I tried hooking on the WebView2's OnResize, and also control's, and I see that size changes when content gets out of place, but don't know how to fix it. Tried various options like setting parent to null etc...

Any ideas?

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions