Can't get the css right for max height

Can't get the css right for max height

door Bert van der Hooft -
Aantal antwoorden: 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

Gemiddelde van de beoordelingen:  -
Als antwoord op Bert van der Hooft

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

door Mark Johnson -
Foto van Core developers Foto van Particularly helpful Moodlers Foto van Peer reviewers Foto van 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.
Gemiddelde van de beoordelingen:  -
Als antwoord op Bert van der Hooft

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

door Dani Palou -
Foto van Core developers Foto van Moodle HQ Foto van Peer reviewers Foto van 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

Gemiddelde van de beoordelingen:  -