merged onlayoutcomplete PR

This commit is contained in:
Charlie Kindel
2020-06-02 10:13:50 -06:00
parent 99e52ea05a
commit f89fc03a0c
7 changed files with 46 additions and 12 deletions

View File

@@ -627,7 +627,7 @@ static class Demo {
var bottom2 = new Label ("This should go on the bottom of another top-level!");
top.Add (bottom2);
Application.Loaded += (sender, e) => {
top.LayoutComplete += (sender, e) => {
bottom.X = win.X;
bottom.Y = Pos.Bottom (win) - Pos.Top (win) - margin;
bottom2.X = Pos.Left (win);