Toast Doen't centralize anymore when set the width

Hello Team!

Why my toast doesn't X centralized anymore when i set Top value in px?? How to overcome it ?

<SfToast id="DefaultToast" @ref="_toastObj" Height="auto" Width="800" Content="@_toastContent" TimeOut="0">
    <ToastPosition X="Center" Y="200"></ToastPosition>
    <ToastEvents OnClick="@ToastClick"></ToastEvents>
</SfToast>

Thanks,
Chimène Nk.

1 Reply

RK Revanth Krishnan Syncfusion Team May 27, 2020 11:24 AM UTC

Hi Nkouambia, 
 
Greetings from Syncfusion support. 
 
We have validated your query “Toast Doesn't centralize anymore when set the width” and able to reproduce the issue which is due to the position value X and Y is set with different types. We have logged this as a bug in our end and the fix will be included with our Vol 2 2020 Beta release which is expected on the third week of June. 
Until then you can use either predefined values or pixel values, please refer the code snippet below for reference, 
 
Code Snippet: 
 
<SfToast @ref="ToastObj" Title="Adaptive Tiles Meeting" TimeOut=5000 Icon="e-meeting" Width="800" Content="Toast Content"> 
    <ToastPosition X="Center" Y="Bottom"></ToastPosition> 
</SfToast> 
 
 
Or 
 
<SfToast @ref="ToastObj" Title="Adaptive Tiles Meeting" TimeOut=5000 Icon="e-meeting" Width="800" Content="@ToastContent"> 
    <ToastPosition X="500" Y="500"></ToastPosition> 
</SfToast> 
 
 
You can now track the current status of the report, review the proposed resolution timeline, and contact us for any further inquiries through this link: https://www.syncfusion.com/feedback/14731 
 
Regards, 
Revanth 


Loader.
Up arrow icon