Socket
Socket
Sign inDemoInstall

view-list

Package Overview
Dependencies
17
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.1.0 to 1.2.0

2

package.json
{
"name": "view-list",
"version": "1.1.0",
"version": "1.2.0",
"description": "",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -7,10 +7,11 @@ var h = require('virtual-dom/h')

var self = this
Object.defineProperty(this, 'height', {
get: function() {
return this.style.height || 0
},
set: function(val) {
this.style.height = val || 0
}
})
// Calculate height outside of the style.height
function OnHeight() {}
OnHeight.prototype.hook = function(node) {
setTimeout(function() {
self.height = node.offsetHeight
}, 10)
}
xtend(this, {

@@ -20,3 +21,3 @@ tagName: 'ul',

className: 'view-list',
data: [],
onHeight: new OnHeight(),
onscroll: function () {

@@ -32,7 +33,4 @@ self._scrollTop = this.scrollTop

},
height: 500,
rowHeight: 30,
style: {
height: 500,
overflow: 'auto'
},
_scrollTop: 0,

@@ -39,0 +37,0 @@ _visibleStart: 0,

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc