diff options
author | Marius Ungureanu <marius.ungureanu@xamarin.com> | 2017-09-29 20:08:35 +0300 |
---|---|---|
committer | Marius Ungureanu <marius.ungureanu@xamarin.com> | 2017-11-17 17:03:25 +0300 |
commit | fe5525db12b6f059015dcfcaa847559707dd0254 (patch) | |
tree | b620d78a76c863813a4cbd6fb001f0da9fc1b470 | |
parent | 6999039b3fe87026d36ff2c4704112d2f9698bda (diff) |
[Gtk] Add OnSizeRequested callbacks to children.xwt-siz-request
-rw-r--r-- | Xwt.Gtk/Xwt.GtkBackend/BoxBackendGtk2.cs | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/Xwt.Gtk/Xwt.GtkBackend/BoxBackendGtk2.cs b/Xwt.Gtk/Xwt.GtkBackend/BoxBackendGtk2.cs index 9f12f4c1..fd4ccb84 100644 --- a/Xwt.Gtk/Xwt.GtkBackend/BoxBackendGtk2.cs +++ b/Xwt.Gtk/Xwt.GtkBackend/BoxBackendGtk2.cs @@ -24,6 +24,7 @@ // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN // THE SOFTWARE. using System; +using System.Linq; namespace Xwt.GtkBackend { @@ -34,6 +35,13 @@ namespace Xwt.GtkBackend if (!IsReallocating) QueueResize (); } + + protected override void OnSizeRequested (ref Gtk.Requisition requisition) + { + base.OnSizeRequested (ref requisition); + foreach (var c in children.Keys.ToArray ()) + c.SizeRequest (); + } } } |