Textarea resize fixes. Fixes #63.

This commit is contained in:
kiswa 2014-12-07 14:35:26 -05:00
parent 636556a00a
commit 3ffc0cd84e
3 changed files with 6 additions and 0 deletions

View File

@ -34,6 +34,9 @@ a, button {
a:hover.fa { a:hover.fa {
text-decoration: none; text-decoration: none;
} }
textarea {
resize: vertical;
}
.green { .green {
color: green; color: green;
} }

View File

@ -58,11 +58,13 @@ function ($scope, $routeParams, $location, $interval, $window,
$scope.openEditItem = function() { $scope.openEditItem = function() {
$scope.itemFormData.loadItem($scope.contextItem); $scope.itemFormData.loadItem($scope.contextItem);
$('.itemModal textarea').css('height', 'auto');
$('.itemModal').modal('show'); $('.itemModal').modal('show');
}; };
$scope.openAddItem = function() { $scope.openAddItem = function() {
$scope.itemFormData.reset($scope.contextLaneId); $scope.itemFormData.reset($scope.contextLaneId);
$('.itemModal textarea').css('height', 'auto');
$('.itemModal').modal('show'); $('.itemModal').modal('show');
}; };

View File

@ -61,6 +61,7 @@ function ($scope, $window, BoardService) {
$scope.fileReset = true; $scope.fileReset = true;
if (openModal) { if (openModal) {
$('.itemViewModal textarea').css('height', 'auto');
$('.itemViewModal').modal({ show: true, keyboard:false }); $('.itemViewModal').modal({ show: true, keyboard:false });
} }
}; };