Hi,
When I resize screen width I get left and right arrows so ejs tab is responsive (img 1). That behaviour I want.
But when I have side menu next to ejs tab, I don't get arrows (img 2) I get horizontal scroll. I want behaviour from first image also on second.
The same problem I have with ejs spreadsheet component, he is responsive when there is no side menu next to him, but when there is side menu spreadsheet is not responsive. Also, the same problem is with grid pager.
Best regards,
Kristina
when there is side menu spreadsheet is not responsive.
We have prepared a responsive Sidebar with Spreadsheet sample. We can make the spreadsheet responsive by using the refresh method. Please check the code snippet.
|
<ejs-sidebar id="sidebar-menu" class="dock-menu" #sidebarMenuInstance [enableDock]="enableDock" [width]="width" [dockSize]="dockSize" [mediaQuery]="mediaQuery" [target]="target" (open)="opened($event)" (change)="change($event)" > <!-- main-content declaration --> <div class="main-content" id="maintext"> <div class="spreadsheet-content"> <ejs-spreadsheet #spreadsheet id="spreadsheet"></ejs-spreadsheet> </div> </div> <!-- end of main-content -->
|
|
opened() { const ssObj: Spreadsheet = this.spreadsheetInstance; setTimeout(function () { ssObj.refresh(); }, 200); } change() { this.spreadsheetInstance.refresh(); } |
|
.spreadsheet-content { height: calc(100% - 50px); }
|
Sample: https://stackblitz.com/edit/angular-vjlsve-doasae?file=app.component.html
Please check and get back to us, if you need further assistance.