Skip to content
This repository has been archived by the owner on Sep 5, 2024. It is now read-only.

Commit

Permalink
update(backdrop): refactor warning message
Browse files Browse the repository at this point in the history
  • Loading branch information
ThomasBurleson committed Jul 21, 2015
1 parent a26d369 commit 2901bd1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/backdrop/backdrop.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
angular
.module('material.components.backdrop', ['material.core'])
.directive('mdBackdrop', function BackdropDirective($mdTheming, $animate, $rootElement, $window, $log, $$rAF) {
var ERROR_CSS_POSITION = "<md-backdrop> may not work properly in a scrolled, static-positioned parent container.";

return {
restrict: 'E',
Expand All @@ -39,8 +40,7 @@ angular
var position = $window.getComputedStyle(parent).getPropertyValue('position');
if (position == 'static') {
// backdrop uses position:absolute and will not work properly with parent position:static (default)
var positionError = "<md-backdrop> may not work properly in a scrolled, static-positioned parent container.";
$log.warn( positionError );
$log.warn( ERROR_CSS_POSITION );
}
}

Expand Down

0 comments on commit 2901bd1

Please sign in to comment.