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
I would have expected controls to keep their sizes after being added to a PixelLayout.
Actual Behavior
Unlike using Wpf or Mac64 implementations, when I add a control to a PixelLayout using Gtk, the control is resized with a new size (usually 1,1).
Steps to Reproduce the Problem
Create a pixel layout
Add a control to it using Add()
Check the size of the control after that
Code that Demonstrates the Problem
PixelLayout pixelLayout = new PixelLayout();
pixelLayout.Size = new Size(windowSizeInPixelsX, windowSizeInPixelsY);
Panel panel = new Panel() {Size = new Size(pixelLayout.Width / 2, pixelLayout.Height / 2)};
pixelLayout.Add(panel,50, 50);
Specifications
Version: 2.5.10
Platform(s): Gtk3
Operating System(s): Windows 10, Ubuntu 20.04 TLS
I have had a look at the PixelLayout handler for Gtk and I suspect this is a known issue (there is a comment saying that the minimum size is used instead of the natural size), but haven't found any issue so I thought I'd better report it just in case :)
The text was updated successfully, but these errors were encountered:
Thanks for reporting the issue and providing a code sample to demonstrate the problem. There is another known issue (#1752) that might be related to this one, but it'll need some digging.
I have tested the code above on Ubuntu 20, and can confirm that panel shows properly. I am quite sure I actually ran that same code when I created the issue, but hey... I could be wrong
Expected Behavior
I would have expected controls to keep their sizes after being added to a PixelLayout.
Actual Behavior
Unlike using Wpf or Mac64 implementations, when I add a control to a PixelLayout using Gtk, the control is resized with a new size (usually 1,1).
Steps to Reproduce the Problem
Code that Demonstrates the Problem
Specifications
I have had a look at the PixelLayout handler for Gtk and I suspect this is a known issue (there is a comment saying that the minimum size is used instead of the natural size), but haven't found any issue so I thought I'd better report it just in case :)
The text was updated successfully, but these errors were encountered: