WordPress database error: [Can't create/write to file '/tmp/#sql-temptable-4db-14e7ad-14.MAI' (Errcode: 28 "No space left on device")]SELECT p.* FROM wp_mdb_forum_posts AS p LEFT JOIN wp_mdb_forum_posts AS q ON( q.Id = p.ParentId AND p.Id = q.AcceptedAnswerId ) WHERE p.PostTypeId = 2 AND p.ParentId = 61385 GROUP BY p.Id ORDER BY CASE WHEN q.Id IS NOT NULL THEN 1 ELSE 0 END DESC, p.UpvoteCount DESC, p.CreationDate ASC
Topic: Accordion angular 6 item body not resizing correctly
<mdb-squeezebox [multiple]="false"> <mdb-item> <mdb-item-head>Some Title</mdb-item-head> <mdb-item-body> <some-dnamic-component></some-dnamic-component> </mdb-item-body> </mdb-item> </mdb-squeezebox>The problem is in the toggle() function of the SBItembodyComponent:
toggle(collapsed) { let height = '0'; if(!collapsed) { this.renderer.setStyle(this.bodyEl.nativeElement, "height", "auto"): this.height = this.bodyEl.nativeElement.offsetHeight + 'px'; this.renderer.setStyle(this.bodyEl.nativeElement, "height", "0"): } setTimeout(() => this.renderer.setStyle(this.bodyEl.nativeElement, "height", height), 50); }Please change it to:
toggle(collapsed) { if(!collapsed) { this.renderer.setElementStyle(this.bodyEl.nativeElement, "height", "auto"): } else { this.renderer.setElementStyle(this.bodyEl.nativeElement, "height", "0"): } }This should fix the bug.
FREE CONSULTATION
Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.
Answered
- User: Pro
- Premium support: No
- Technology: MDB Angular
- MDB Version: -
- Device: -
- Browser: -
- OS: -
- Provided sample code: No
- Provided link: No