Unplanned
Last Updated: 29 Sep 2022 07:33 by ADMIN
Pantulu
Created on: 29 Sep 2022 06:54
Category: Diagram, DiagramRibbonBar, DiagramToolBox
Type: Bug Report
0
RadDiagram: Resizing a rotated shape doesn't update the connections and selection rectangle accordingly

Steps to reproduce:

1. Open the Demo application and choose one of the diagram's examples. 

2. Select one shape and rotate it at 180 rotation angle.

3. Change the width:

Expected: the connections and selection rectangle are properly adjusted according to the new size

Actual: the connections are not properly rendered and selection rectangle is also not updated

1 comment
ADMIN
Dess | Tech Support Engineer, Principal
Posted on: 29 Sep 2022 07:33

Hello, Pantulu,

The possible solution that I can suggest is to force updating the layout  by simulating moving with 1 px:

        public RadForm1()
        {
            InitializeComponent();

            foreach (RadDiagramShape shape in this.radDiagram1.Shapes)
            {
                shape.PropertyChanged += shape_PropertyChanged; 
            }
        }

        private void shape_PropertyChanged(object sender, Telerik.Windows.Diagrams.Core.PropertyEventArgs e)
        {
            RadDiagramShape shape = sender as RadDiagramShape ;
            if (e.PropertyName == "Bounds")
            {
                shape.PropertyChanged -= shape_PropertyChanged; 
                shape.X += 1;
                shape.X -= 1;
                shape.PropertyChanged += shape_PropertyChanged; 
            }
        }

Please excuse us for the inconvenience caused.

Regards,
Dess | Tech Support Engineer, Principal
Progress Telerik

Love the Telerik and Kendo UI products and believe more people should try them? Invite a fellow developer to become a Progress customer and each of you can get a $50 Amazon gift voucher.