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
var application = new Application(Eto.Platform.Detect); // Gtk
Label label = new Label { BackgroundColor = Colors.LightBlue };
var table = new TableLayout(1,1);
table.Add(label, 0, 0, true, true);
table.Size = new Size(150, 150);
var pixelLayout = new PixelLayout();
pixelLayout.Add(table, 0, 0);
pixelLayout.SizeChanged += (s,e) =>
{
var size = pixelLayout.Size;
table.Size = size; // Doesn't work
table.Update(); // Doesn't change anything
label.Text =
"Expected: " + size +
"\r\nBut is: " + table.Size;
};
application.Run(new Form { ClientSize = new Size(200, 200), Content = pixelLayout });
Actual Behavior
Using GtkSharp, TableLayout is not resized to 200x200 and stays at 150x150. When the form is resized manually, the size is updated but always one step too late of the actual size. See screenshot:
Expected Behavior
As in WPF/Mac, see screenshot:
The text was updated successfully, but these errors were encountered:
Actual Behavior
Using GtkSharp, TableLayout is not resized to 200x200 and stays at 150x150. When the form is resized manually, the size is updated but always one step too late of the actual size. See screenshot:
Expected Behavior
As in WPF/Mac, see screenshot:
The text was updated successfully, but these errors were encountered: