- Home
- Forum
- React - EJ 2
- Toolbar issue with responsive container
Toolbar issue with responsive container
Hello,
When i update the size of my container my toolbar look like...



Is it possible to do something for that ?
I have some issue with responsive container and toolbar.
For my layout i use : https://github.com/zesik/react-splitter-layout#readme (you can find a demo here : https://zesik.com/react-splitter-layout/#/standard-horizontal)
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.
The responsive work only if i'm in windowed mode.
Is it possible to do something for that ?
Regards,
Jonathan Payet
SIGN IN To post a reply.
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.
- Steps to reproduce the issue
- Share the Toolbar illustrating code snippet
- Share the issue reproducing sample or
- 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.
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
SIGN IN To post a reply.
- 5 Replies
- 3 Participants
- Marked answer
-
JP Jonathan Payet
- Jul 3, 2020 07:58 AM UTC
- Jul 10, 2020 05:31 AM UTC