material icon indicating copy to clipboard operation
material copied to clipboard

$mdMedia('gt-xs') and xs not working

Open estankovic opened this issue 10 years ago • 1 comments

According to https://material.angularjs.org/latest/api/service/$mdMedia breakepoint gt-xs and xs should be evaluated as true if screen width match conditions described here . But it is not working.

Here is an example http://plnkr.co/edit/Q0ApzGos7NrIo7Wgp5AV in example above

  $scope.xs = $mdMedia('xs');
  $scope.cxs = $mdMedia('(max-width: 599px)');

should be evaluated both as true when screen width is under 599px but only last one is evaluated as true. Same for gt-xs

All other breakepoints work just fine

estankovic avatar Dec 27 '15 15:12 estankovic

Sorry my bad. Just realized that readme is not up to date and links are refering to old releas

estankovic avatar Dec 27 '15 15:12 estankovic