@azores/vsizer
Last updated 2 years ago by jlinhares .
MIT · Original npm · Tarball · package.json
$ cnpm install @azores/vsizer 
SYNC missed versions from official npm registry.

@azores/vsizer

Is a Angular 5 module with a directive for automaticaly resizing the height of a div based on browser innerHeight.

Instalation

Install using the command

npm install bz-vsizer

Usage

Add the BzVSizerModule to module imports.

Then just add vsizer attribute to the div. This will make the height equal to browser inner height.

<div vsizer ...></div>

But, most of the times a minimum height is required to be set. For that just add the attribute vsiver.min

  <div vsizer vsizer.min="560px" ...></div>

Or is needed to subtract some height for a toolbar or some other element, then use the attribute vsizer.less

 <div vsizer vsizer.less="64px" ...></div>

And the width will be set to 100%

Current Tags

  • 1.0.1                                ...           latest (2 years ago)

2 Versions

  • 1.0.1                                ...           2 years ago
  • 1.0.0                                ...           2 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 4
Last Day 0
Last Week 2
Last Month 2
Dependencies (9)
Dev Dependencies (0)
None
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |