diagram BringIntoView zooms in or out depending on DiagramRect X value

Hi,

I have a rather large orgchart so I implemented a zoom feature that higthlights the node and zooms on it. I used to use the classic diagram component but now I switched to the SfDiagramComponent.

I am facing a weird issue, since the diagram is quite large when I selected via dropdown a node that I know is on the left from the center, it will be zoomed in and when I selected a node on the right it will appear zoomed out.

With for example the following code :

private async Task UpdateLayout()

    {

        orgchartEmployees = ModifiedOrgchartEmployeesDetails;

        await BuildOrgchartNodesAndConnectors();

        await orgChartDiagram.DoLayout();


        DiagramRect bounds = new DiagramRect(3000, 800, 500, 500);

        orgChartDiagram.BringIntoView(bounds);


    }

A large X value will result in a zoomout, replace 3000 with for example -3000 and it will appear zoomed in.

The Y value and the width and height remain the same so why the zoom ? How can I remedy that so that it is consistent throught the entire orgchart structure ?

Thanks,

--Nicolas


4 Replies

BR Balavignesh RaviChandran Syncfusion Team July 14, 2023 12:07 PM UTC

Hi Nicolas,

 

We were able to reproduce  the reported issue. We are currently validating the issue and will provide additional information shortly.

 

Regards,

Balavignesh




NN Nicolas Navier July 18, 2023 06:45 PM UTC

Thanks, let me know if you find something.



BR Balavignesh RaviChandran Syncfusion Team July 19, 2023 02:47 PM UTC

Hi Nicolas,

We have confirmed that the reported issue "diagram BringIntoView zooms in or out depending on DiagramRect X value" is a bug and have logged a defect report regarding it. We will fix the issue and include the fix in our upcoming weekly NuGet release, which is expected to be rolled out on "August 1, 2023". We appreciate your patience until then.

 

Meanwhile, you can track the status of the bug at the following link:

 

Feedback Link: https://www.syncfusion.com/feedback/45375/need-to-change-the-working-behaviour-of-bring-into-view

 

Disclaimer: The inclusion of this solution in the weekly release may change due to other factors, including but not limited to QA checks and work reprioritization.




SU Sumathi Uthayakumar Syncfusion Team August 2, 2023 11:00 AM UTC

Hi Nicolas,

We have fixed the reported issue  Diagram BringIntoView zooms in or out depending on DiagramRect X value” and included the fix in our weekly patch release(v22.2.7). Please update the “Syncfusion.Blazor.Diagram” package to the latest version in your application to resolve the reported issue. Please find the package link below.


https://www.nuget.org/packages/Syncfusion.Blazor.Diagram



Loader.
Up arrow icon