コード例 #1
0
 protected override void OnSizeAllocated(Rectangle allocation)
 {
     base.OnSizeAllocated(allocation);
     if (textEditorWidget.Allocation != allocation)
     {
         textEditorWidget.SizeAllocate(allocation);
     }
     SetChildrenPositions(allocation);
 }
コード例 #2
0
 protected override void OnSizeAllocated(Rectangle allocation)
 {
     base.OnSizeAllocated(allocation);
     if (this.GdkWindow != null)
     {
         this.GdkWindow.MoveResize(allocation);
     }
     allocation = new Rectangle(0, 0, allocation.Width, allocation.Height);
     if (textEditorWidget.Allocation != allocation)
     {
         textEditorWidget.SizeAllocate(allocation);
     }
     SetChildrenPositions(allocation);
 }