From 3ffc0cd84e9e12c51662b984c3adf1b6daeacbdd Mon Sep 17 00:00:00 2001 From: kiswa Date: Sun, 7 Dec 2014 14:35:26 -0500 Subject: [PATCH] Textarea resize fixes. Fixes #63. --- css/styles.css | 3 +++ js/controllers/boards.js | 2 ++ js/controllers/boardsItemView.js | 1 + 3 files changed, 6 insertions(+) diff --git a/css/styles.css b/css/styles.css index fca685b..91591c3 100644 --- a/css/styles.css +++ b/css/styles.css @@ -34,6 +34,9 @@ a, button { a:hover.fa { text-decoration: none; } +textarea { + resize: vertical; +} .green { color: green; } diff --git a/js/controllers/boards.js b/js/controllers/boards.js index e072d0d..22af7cc 100644 --- a/js/controllers/boards.js +++ b/js/controllers/boards.js @@ -58,11 +58,13 @@ function ($scope, $routeParams, $location, $interval, $window, $scope.openEditItem = function() { $scope.itemFormData.loadItem($scope.contextItem); + $('.itemModal textarea').css('height', 'auto'); $('.itemModal').modal('show'); }; $scope.openAddItem = function() { $scope.itemFormData.reset($scope.contextLaneId); + $('.itemModal textarea').css('height', 'auto'); $('.itemModal').modal('show'); }; diff --git a/js/controllers/boardsItemView.js b/js/controllers/boardsItemView.js index 10dd8b0..a1b1b38 100644 --- a/js/controllers/boardsItemView.js +++ b/js/controllers/boardsItemView.js @@ -61,6 +61,7 @@ function ($scope, $window, BoardService) { $scope.fileReset = true; if (openModal) { + $('.itemViewModal textarea').css('height', 'auto'); $('.itemViewModal').modal({ show: true, keyboard:false }); } };