angular-gridster2
Advanced tools
Comparing version 5.0.0 to 5.0.1
@@ -29,3 +29,24 @@ "use strict"; | ||
renderer.setStyle(el, 'height', height + 'px'); | ||
renderer.setStyle(el, 'margin-bottom', null); | ||
var marginBottom = null; | ||
var marginRight = null; | ||
if (this.gridster.$options.outerMargin) { | ||
if (this.gridster.rows === item.rows + item.y) { | ||
if (this.gridster.$options.outerMarginBottom !== null) { | ||
marginBottom = this.gridster.$options.outerMarginBottom + 'px'; | ||
} | ||
else { | ||
marginBottom = this.gridster.$options.margin + 'px'; | ||
} | ||
} | ||
if (this.gridster.columns === item.cols + item.x) { | ||
if (this.gridster.$options.outerMarginBottom !== null) { | ||
marginRight = this.gridster.$options.outerMarginRight + 'px'; | ||
} | ||
else { | ||
marginRight = this.gridster.$options.margin + 'px'; | ||
} | ||
} | ||
} | ||
renderer.setStyle(el, 'margin-bottom', marginBottom); | ||
renderer.setStyle(el, 'margin-right', marginRight); | ||
} | ||
@@ -32,0 +53,0 @@ }; |
{ | ||
"name": "angular-gridster2", | ||
"version": "5.0.0", | ||
"version": "5.0.1", | ||
"license": "MIT", | ||
@@ -18,5 +18,5 @@ "main": "dist/index.js", | ||
"e2e": "ng e2e", | ||
"build-demo": "ng build --prod --base-href=./", | ||
"build-demo": "ng build --prod --base-href=/angular-gridster2/", | ||
"build-npm": "gulp build && ngc -p tsconfig-lib.json", | ||
"deploy-demo": "ngh --dir=demo --no-silent --name='Tiberiu Zuld' --email='tiberiuzuld@gmail.com'" | ||
"deploy-demo": "ngh --dir=demo --repo=https://GH_TOKEN@github.com/tiberiuzuld/angular-gridster2.git --name='Tiberiu Zuld' --email=tiberiuzuld@gmail.com" | ||
}, | ||
@@ -68,3 +68,3 @@ "homepage": "https://tiberiuzuld.github.io/angular-gridster2/angular", | ||
"@types/jasminewd2": "2.0.3", | ||
"@types/node": "9.6.1", | ||
"@types/node": "9.6.2", | ||
"angular-cli-ghpages": "0.5.2", | ||
@@ -90,4 +90,4 @@ "codelyzer": "4.2.1", | ||
"typescript": "2.6.2", | ||
"zone.js": "0.8.20" | ||
"zone.js": "0.8.25" | ||
} | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
190281
3489