MOBILE-3492 core: Don't collapse some texts in big screens
parent
fe91f7e602
commit
ee96f20775
|
@ -354,7 +354,8 @@ export class CoreFormatTextDirective implements OnChanges {
|
||||||
this.element.classList.add('core-disable-media-adapt');
|
this.element.classList.add('core-disable-media-adapt');
|
||||||
|
|
||||||
this.element.innerHTML = ''; // Remove current contents.
|
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.
|
// Move the children to the current element to be able to calculate the height.
|
||||||
this.domUtils.moveChildren(result.div, this.element);
|
this.domUtils.moveChildren(result.div, this.element);
|
||||||
|
|
Loading…
Reference in New Issue