Merge pull request #2476 from dpalou/MOBILE-3492
MOBILE-3492 core: Don't collapse some texts in big screensmain
commit
16d032033d
|
@ -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