MOBILE-3492 core: Don't collapse some texts in big screens

main
Dani Palou 2020-07-20 12:05:07 +02:00
parent fe91f7e602
commit ee96f20775
1 changed files with 2 additions and 1 deletions

View File

@ -354,7 +354,8 @@ export class CoreFormatTextDirective implements OnChanges {
this.element.classList.add('core-disable-media-adapt');
this.element.innerHTML = ''; // Remove current contents.
if (this.maxHeight && result.div.innerHTML != '') {
if (this.maxHeight && result.div.innerHTML != '' &&
(this.fullOnClick || (window.innerWidth < 576 || window.innerHeight < 576))) { // Don't collapse in big screens.
// Move the children to the current element to be able to calculate the height.
this.domUtils.moveChildren(result.div, this.element);