You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
When creating an OpenGL context (using Avalonia.OpenGL.Controls.OpenGlControlBase) with margin the position of the control is offset so that it moves to the bottom right corner of the control area rather than the center like I would expect.
To Reproduce
Steps to reproduce the behavior:
Create new project
Create an OpenGL control (inherit from Avalonia.OpenGL.Controls.OpenGlControlBase) - See example control
Add the OpenGL to the main window and set a margin like this Margin="30"
Make sure you have .With(new Win32PlatformOptions { UseWgl = true }) in the AppBuilder Config
Expected behavior
Looking at the second screenshot I would expect it to render inside the blue area rather than being offset as that is where the margin says it should be
Screenshots
This is how it looks when rendering but using the Dev tools to render actual control size you can see that the OpenGL control isn't correctly positioned.
Desktop (please complete the following information):
OS: Windows 10 Pro 10.0.19043 Build 19043
Version 0.10.13, 0.10.14
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered:
Describe the bug
When creating an OpenGL context (using
Avalonia.OpenGL.Controls.OpenGlControlBase
) with margin the position of the control is offset so that it moves to the bottom right corner of the control area rather than the center like I would expect.To Reproduce
Steps to reproduce the behavior:
Avalonia.OpenGL.Controls.OpenGlControlBase
) - See example controlMargin="30"
.With(new Win32PlatformOptions { UseWgl = true })
in the AppBuilder ConfigOpenGL Control:
MainWindow:
Expected behavior
Looking at the second screenshot I would expect it to render inside the blue area rather than being offset as that is where the margin says it should be
Screenshots
This is how it looks when rendering but using the Dev tools to render actual control size you can see that the OpenGL control isn't correctly positioned.
Desktop (please complete the following information):
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: