Toolbar issue with responsive container

Hello,

I have some issue with responsive container and toolbar.

When i update the size of my container my toolbar look like... 

Before :


After : 


The right panel go upside the left panel.

The responsive work only if i'm in windowed mode.


Is it possible to do something for that ? 

Regards,
Jonathan Payet


5 Replies 1 reply marked as answer

VM Vengatesh Maniraj Syncfusion Team July 6, 2020 09:02 AM UTC

Hi Jonathan, 

Greetings from Syncfusion Support. 

We tried to understand the reported problem at our end but we could not clear about the issue. We suspect that you have faced the problem with Toolbar responsiveness and we checked the responsiveness with Toolbar but it could be working. Please refer to the below sample. 


Before:  
 
After container size changed. 
 
Kindly check the above sample and if you still face the problem kindly share the below details to serve to better. 

  1. Steps to reproduce the issue
  2. Share the Toolbar illustrating code snippet
  3. Share the issue reproducing sample or
  4. Make the changes in the above sample to reproduce the issue.

The requested details are more helpful to validate the issue and provide the solution quickly. 

Regards, 
Vengatesh  



JP Jonathan Payet July 6, 2020 10:00 AM UTC

Hi Vengatesh,

I created a sample here : https://stackblitz.com/edit/react-w5c9c9  ( Click on : "Open in new window" in the right top of stackblitz)
Responsiveness work because stackblitz use an iframe.
Please take a look in the new window and resize with the handler in the middle of the screen.

Regards,
Jonathan


SK Sujith Kumar Rajkumar Syncfusion Team July 7, 2020 11:43 AM UTC

Hi Jonathan, 
 
Thanks for sharing the sample. 
 
The reported problem was occurring because the Grid was not refreshed properly based on the splitter’s size when it is adjusted. Since the Grid is rendered inside the Splitter component and adjusting the splitter modifies the total height, the Grid size also needs to be refreshed based on this at that position. So you can resolve this by refreshing the Grid using its refresh method after the splitter resize(In your case onDragEnd event). This is demonstrated in the below code snippet,  
  
// React splitter layout's onDragEnd event handler 
splitterResize(args) { 
        this.gridInstance.refresh(); 
} 
  
We have modified the sample provided based on this which you can find below,  
  
Let us know if you have any concerns.  
  
Regards,  
Sujith R  


Marked as answer

JP Jonathan Payet July 9, 2020 09:28 AM UTC

Hello, thank you very much for your reply.
We can say that the problem is solved!

Regards,
Jonathan


SK Sujith Kumar Rajkumar Syncfusion Team July 10, 2020 05:31 AM UTC

Hi Jonathan, 
 
You’re welcome. We are glad to hear that your problem has been resolved. Please get back to us if you require any further assistance. 
 
Regards, 
Sujith R 


Loader.
Up arrow icon