예제 #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);
 }