We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

Is it possible to get the "Cut/Copy/Paste" of a SpeedDialItem to draw outside of the #target?

I'm attempting to use the Speed Dial within a DIV that is set as the target. However when clicking the speed dial the SpeedDialItem(s) fail to draw outside of the target DIV. Is it possible to make the items overlap the boundaries of the target DIV?


Thanks



5 Replies 1 reply marked as answer

SI Silambarasan I Syncfusion Team April 10, 2023 11:43 AM UTC

Hi Jeff,

Based on provided details, we suspect that the target DIV container is applied with overflow: hidden CSS styling.

Could you please check the attached sample and get back to us with more details such as code examples, etc. if still, the issue persists?

Regards,
Silambarasan Ilango


Attachment: BlazorServerApp_25d68488.zip


JB Jeff Baxter April 10, 2023 04:15 PM UTC

Thank you for your response. Your example works as expected.


However, I'm beginning to think it has something to do with an SfSplitter and a SplitterPane. When I add the Speed Dial inside a Splitter Pane, it no longer draws correctly. I've also tried various values of the overflow CSS style on the #target div with no luck.


<SfAppBar ColorMode="AppBarColor.Primary" Position="AppBarPosition.Bottom" IsSticky=true style="height: 335px;">

<SfSplitter Height="100%" Width="100%">

    <SplitterPanes>

        <SplitterPane Resizable="false" Size="25%">

            <div id="target" style="min-height:150px; position:relative; width:300px; border:1px solid #ff0000;">

                <SfSpeedDial Target="#target" Content="Edit">

                    <SpeedDialItems>

                        <SpeedDialItem Text="Cut" />

                        <SpeedDialItem Text="Copy" />

                        <SpeedDialItem Text="Paste" />

                    </SpeedDialItems>

                </SfSpeedDial>

            </div>

        </SplitterPane>

        <SplitterPane Resizable="false" Size="50%">

            <div></div>

        </SplitterPane>

        <SplitterPane Resizable="false" Size="25%">

            <div></div>

        </SplitterPane>

    </SplitterPanes>

</SfSplitter>

</SfAppBar>



SI Silambarasan I Syncfusion Team April 14, 2023 11:45 AM UTC

Hi Jeff,

Thanks for your patience.

You can resolve and achieve the reported requirement by overriding the Splitter pane using custom CSS. Please refer to the below code example.


 

<SfAppBar ColorMode="AppBarColor.Primary" Position="AppBarPosition.Bottom" IsSticky=true style="height: 335px;">

    <SfSplitter ID="splitter" Height="100%" Width="100%">

        <SplitterPanes>

            <SplitterPane CssClass="custom" Resizable="false" Size="25%">

                <div id="target" style="min-height:150px; position:relative; width:300px; border:1px solid #ff0000;">

                    <SfSpeedDial Target="#target" Content="Edit">

                        <SpeedDialItems>

                            <SpeedDialItem Text="Cut" />

                            <SpeedDialItem Text="Copy" />

                            <SpeedDialItem Text="Paste" />

                        </SpeedDialItems>

                    </SfSpeedDial>

                </div>

            </SplitterPane>

            //...

        </SplitterPanes>

    </SfSplitter>

</SfAppBar>

 

 

<style>

 

    #splitter .custom {

        overflow: visible;

    }

 

</style>

 


Could you please check the above solution and get back to us if facing any issues?


Regards,
Silambarasan Ilango


Attachment: BlazorServerApp_38024a4d.zip


JB Jeff Baxter April 14, 2023 03:27 PM UTC

Your example was quite helpful.


In addition to setting the #splitter .custom "CssClass" for the splitter pane, I also had to adjust the SfSplitter Style="overflow: visible;" otherwise I would get this result:


With the change you suggested and the additional overflow: visible on the SfSplitter control itself the results are as desired:

 


Marked as answer

BH BharatRam Harikrishnan Syncfusion Team April 17, 2023 09:32 AM UTC

Hi Jeff,


We are glad to know that the issue was resolved. Please get back to us if you need further assistance.


Regards, 

Bharat Ram H


Loader.
Up arrow icon