Can't get the css right for max height

Can't get the css right for max height

by Bert van der Hooft -
Number of replies: 2

L.s.

I can't get the css right for adjusting the max height.

The inspector gave me:

core-format-text[maxHeight].core-text-formatted.core-shortened, core-format-text[ng-reflect-max-height].core-text-formatted.core-shortened {

    color: #e34234;

    min-height:120px;

}

Using that in the mobile css file doesn't change anything. All other mobile css statement works.


What am I doing wrong?


Bert

Average of ratings: -
In reply to Bert van der Hooft

Re: Can't get the css right for max height

by Mark Johnson -
Picture of Core developers Picture of Particularly helpful Moodlers Picture of Peer reviewers Picture of Plugin developers
I'm not an angluar expert so happy to be corrected on this, but I dont think you want to use ng-reflect- attributes in your code.  I understand it these are only added in debugging mode so won't be present in the built app.
In reply to Bert van der Hooft

Re: Can't get the css right for max height

by Dani Palou -
Picture of Core developers Picture of Moodle HQ Picture of Particularly helpful Moodlers Picture of Peer reviewers Picture of Plugin developers

Hi Bert,

we detected that in some cases neither the maxHeight nor the ng-reflect-max-height were present in the DOM. We fixed that for v3.5.1, so if you tried with 3.5.0 you might want to try again.

I can't see anything wrong with your rule at first sight.

Cheers,

Dani