GLWpfControl
GLWpfControl copied to clipboard
Control isn't resized correctly
Hi, first of all, thanks for this very useful package, it solves some current issues with OpenTK and its dependencies and is very nice to use.
However, the control displays odd behaviour when it's resized. If put inside a Grid
, and the Grid
column is resized using a GridSplitter
, the control will not update its size until the row is resized... and vice versa. Note: The parent control type seems to be irrelevant, this happens when parenting the GLWpfControl
inside other container types, too.
Here's a screen recording (in GIF format) which shows the undesirable behaviour: https://i.gyazo.com/972ae86b2ff91b09da3fa715075c2302.gif
I'm not sure if this is intentional behaviour, or can be solved via code (perhaps by invalidating something?), but it seems a little strange to me, and I'd probably consider it a bug... unless it's just the way I'm using the control
(Edit) Oh I should mention, in the GIF the magenta area is the control. The space above it is intentional.
Hi. This bug should be fixed by #27 Fix is included in release 4.0.0-pre.12
Leaving this open, as despite the fix, it looks like this can still happen in some very edge cases with a ton of nested controls. Also seeing the width-only resize issues.