Find file History
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
..
Failed to load latest commit information.
component.css
component.js
component.json
dependencies.html
example.html
picture.jpg
readme.md

readme.md

j-ViewBox

  • keeps a fixed percentage height
  • great usage for intranet applications

Configuration:

  • height {Number} a percentage of height
  • disabled {Boolean} optional, can disable a content with the layer
  • parent {String} optional, a container with fixed height, can be window. Default value: component.parent()
  • minheight {Number} a minimal height in pixels (default: 0 - disabled)
  • scroll {Boolean} enables vertical scrolling (default: false - disabled)
  • delay {Number} msec. resizes the box again if the value is changed according to the path (default: 100)

Methods:

  • component.scrollleft(val) scrolls X
  • component.scrolltop(val) scrolls Y
  • component.scrollright(val) scrolls X from right side
  • component.scrollbottom(val) scrolls Y from bottom side
  • component.resize() resizes container (it reacts on resize events automatically)

### Author