Fixed drawing on mobile

This commit is contained in:
2019-08-24 11:26:30 -04:00
parent 5bfbb7c6f1
commit bc673ae6ab
3 changed files with 71 additions and 17 deletions

View File

@ -20,7 +20,7 @@ export class ToolbarComponent implements AfterViewInit {
@HostListener('window:resize', ['$event'])
ngAfterViewInit() {
setTimeout(() => this.maxMenuItems = Math.floor((document.getElementById('toolbar').offsetWidth - 200) / 75), 1);
setTimeout(() => this.maxMenuItems = Math.floor((document.getElementById('toolbar').offsetWidth - 100) / 75), 1);
}
clickWrapper(item: ToolbarItem, menu?: ToolbarItem[]) {