18.2.44 - Expand and Collapse function don't work as before

Code:

---

@page "/Splitter"
@using Syncfusion.Blazor
@using Syncfusion.Blazor.Layouts
@using Syncfusion.Blazor.Buttons

<SfSplitter @ref="SplitterObj" Height="200px" Width="600px" SeparatorSize=2>
    <SplitterPanes>
        <SplitterPane Collapsible="true" CssClass="class-1">
            <ChildContent>
                <div>
                    <div class="content">
                        <h3 class="h3">PARIS </h3>
                        Paris, the city of lights and love - this short guide is full of ideas for how to make the most of the romanticism...
                    </div>
                </div>
            </ChildContent>
        </SplitterPane>
        <SplitterPane Collapsible="true" Collapsed="true"  CssClass="class-2">
            <ChildContent>
                <div>
                    <div class="content">
                        <h3 class="h3">CAMEMBERT </h3>
                        The village in the Orne department of Normandy where the famous French cheese is originated from.
                    </div>
                </div>
            </ChildContent>
        </SplitterPane>
    </SplitterPanes>
</SfSplitter>
<div id="button-container">
    <SfButton OnClick="@ExpandClick"> Expand </SfButton>
    <SfButton OnClick="@CollapseClick"> Collapse </SfButton>
</div>
<style>
    .content {
        padding: 10px;
    }

    #button-container {
        display: flex;
        margin: 20px 22% 40px;
    }
</style>

@code {
    SfSplitter SplitterObj;
    private void ExpandClick(MouseEventArgs args) { SplitterObj.Expand(1); }
    private void CollapseClick(MouseEventArgs args) { SplitterObj.Collapse(1); }
}

----

1.
When I open the page and click the Expand button, the right side correctly expands over the half of the splitter.
When I then click on the Collapse button, the expected behavior is that the right-half disappears again, but instead it displays over the full width.


Best regards,

Michael Brignola

2 Replies 1 reply marked as answer

RK Revanth Krishnan Syncfusion Team July 13, 2020 12:50 PM UTC

Hi Michael, 
 
 
Greetings from Syncfusion support. 
 
 
We have validated your query “Expand and collapse doesn’t work properly as before” and we are able to reproduce the issue from our end and logged the bug report for the same. We will include the issue fix in our upcoming patch release, which is expected to rollout on July 21 2020 and let you know once release rolled out. We appreciate your patience until then.   
  
You can track the current status through the following feedback link, 
 
 
Regards, 
Revanth 



PM Pandiyaraj Muniyandi Syncfusion Team July 21, 2020 03:07 PM UTC


Thanks for your patience, 
 

We have resolved the reported issue “Collapse public method doesn't work properly in Splitter” and the fix is now available with the NuGet package version 18.2.46.  
 
 
 
 
Can you please upgrade your package to this version to resolve the issue from your end?  
 
 
Regards, 
Pandiyaraj 


Marked as answer
Loader.
Up arrow icon