Beispiel #1
0
        protected override void OnSizeAllocated(Gdk.Rectangle allocation)
        {
            base.OnSizeAllocated(allocation);

            if (!_lastAllocation.Equals(allocation))
            {
                _lastAllocation = allocation;

                _image.SetSizeRequest(allocation.Width, allocation.Height);
                _wrapperBox.SetSizeRequest(allocation.Width, allocation.Height);
            }
        }
Beispiel #2
0
        protected override void OnSizeAllocated(Gdk.Rectangle allocation)
        {
            base.OnSizeAllocated(allocation);

            if (_lastAllocation != allocation)
            {
                _lastAllocation = allocation;

                _image.SetSizeRequest(allocation.Width, allocation.Height);
                _widget.SetSizeRequest(allocation.Width, allocation.Height);
            }
        }
Beispiel #3
0
 private void OnContentContainerWrapperSizeAllocated(object o, SizeAllocatedArgs args)
 {
     _image.SetSizeRequest(args.Allocation.Width, args.Allocation.Height);
 }