Skip to content
This repository has been archived by the owner on Aug 29, 2023. It is now read-only.

Commit

Permalink
update(layout): add layout-nowrap
Browse files Browse the repository at this point in the history
This change fixes layout-nowrap to be consistent with the documentation and styles.

Closes #6921
  • Loading branch information
isaaclyman authored and ThomasBurleson committed Jan 30, 2016
1 parent b77e49b commit 8111546
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/core/services/layout/layout.js
Expand Up @@ -105,6 +105,7 @@
.directive('ngCloak' , buildCloakInterceptor('ng-cloak'))

.directive('layoutWrap' , attributeWithoutValue('layout-wrap'))
.directive('layoutNowrap' , attributeWithoutValue('layout-nowrap'))
.directive('layoutNoWrap' , attributeWithoutValue('layout-no-wrap'))
.directive('layoutFill' , attributeWithoutValue('layout-fill'))

Expand Down Expand Up @@ -406,7 +407,8 @@
case 'layout-margin' :
case 'layout-fill' :
case 'layout-wrap' :
case 'layout-no-wrap' :
case 'layout-nowrap' :
case 'layout-nowrap' :
value = '';
break;
}
Expand Down
2 changes: 2 additions & 0 deletions src/core/services/layout/layout.spec.js
Expand Up @@ -220,7 +220,9 @@ describe('layout directives', function() {
"layout-margin",
"layout-fill",
"layout-wrap",
"layout-nowrap",
"layout-no-wrap"

];

angular.forEach(allowedAttrsNoValues, function(name) {
Expand Down

0 comments on commit 8111546

Please sign in to comment.