Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -36,4 +36,5 @@
ehthumbs.db
Thumbs.db

node_modules
node_modules
.vscode
4 changes: 2 additions & 2 deletions bower.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "angular-resizable",
"version": "1.2.0",
"homepage": "https://github.com/Reklino/angular-resizable",
"version": "1.2.1",
"homepage": "https://github.com/landru29/angular-resizable",
"authors": [
"Reklino <[email protected]>"
],
Expand Down
8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "angular-resizable",
"version": "1.2.0",
"version": "1.2.1",
"description": "A directive for creating resizable containers in angular.",
"keywords": [
"angular",
Expand All @@ -18,14 +18,14 @@
},
"repository": {
"type": "git",
"url": "https://github.com/Reklino/angular-resizable.git"
"url": "https://github.com/landru29/angular-resizable.git"
},
"author": "Reklino",
"license": "MIT",
"bugs": {
"url": "https://github.com/Reklino/angular-resizable/issues"
"url": "https://github.com/landru29/angular-resizable/issues"
},
"homepage": "https://github.com/Reklino/angular-resizable",
"homepage": "https://github.com/landru29/angular-resizable",
"devDependencies": {
"gulp": "^3.8.11",
"gulp-minify-css": "^1.1.1",
Expand Down
4 changes: 2 additions & 2 deletions src/angular-resizable.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,10 @@ angular.module('angularResizable', [])

// register watchers on width and height attributes if they are set
scope.$watch('rWidth', function(value){
element[0].style[scope.rFlex ? flexBasis : 'width'] = scope.rWidth + 'px';
element[0].style[scope.rFlex ? flexBasis : 'width'] = (value !== false ? value + 'px' : '');
});
scope.$watch('rHeight', function(value){
element[0].style[scope.rFlex ? flexBasis : 'height'] = scope.rHeight + 'px';
element[0].style[scope.rFlex ? flexBasis : 'height'] = (value !== false ? value + 'px' : '');
});

element.addClass('resizable');
Expand Down