Skip to content

mattlewis92/angular-auto-height

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

AngularJS auto-height directive

Usage:

bower:

$ bower install twygmbh/angular-auto-height

Include it in your angular-app:

angular.module('myApp', [
  // ...
  'twygmbh.auto-height'
]).
config(function () {
  // ...

npm:

$ npm install angular-auto-height

Include it in your angular-app:

angular.module('myApp', [
  // ...
  require('angular-auto-height')
]).
config(function () {
  // ...

Use it in your html:

<div class="parent">
    <div class="sibling">I need some space too</div>
    <div auto-height>
        I stretch to the available height,
        calculated from the height available from .parent and my siblings.
    </div>
</div>

Community

Got a question?

Just send me a message and I'll try to get to you as soon as possible.

Found a bug?

Please submit a new issue.

Fixed something?

  1. Fork angular-auto-height
  2. Create a topic branch - git checkout -b my_branch
  3. Push to your branch - git push origin my_branch
  4. Send me a pull-request for your topic branch
  5. That's it!

License

Released Under MIT License.

About

An AngularJS directive to automatically adjust the height of an element corresponding to the parent and siblings.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 68.6%
  • CoffeeScript 31.4%