Skip to content

Creation of the property "max-width"#541

Open
caio000 wants to merge 1 commit intoisteven:masterfrom
caio000:master
Open

Creation of the property "max-width"#541
caio000 wants to merge 1 commit intoisteven:masterfrom
caio000:master

Conversation

@caio000
Copy link

@caio000 caio000 commented Oct 30, 2017

I created property "max-width" to set the maximum width of the element, following your code.

I'm waiting your comments!

+            if (typeof attrs.maxWidth !== 'undefined') {
+              var layer = element.children().children();
+              angular.element( layer ).attr( "style", "width:" + attrs.maxWidth + "; overflow-x:scroll;");
+            }

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant