Moodle for mobile

Can't get the css right for max height

 
Picture of Bert van der Hooft
Can't get the css right for max height
 

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: -
Picture of Mark Johnson
Re: Can't get the css right for max height
Core developersParticularly helpful MoodlersPlugin 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.
 
Average of ratings: -
Picture of Dani Palou
Re: Can't get the css right for max height
Core developersMoodle HQParticularly helpful MoodlersPlugin 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

 
Average of ratings: -