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 {
text-decoration: none;
}
textarea {
resize: vertical;
}
.green {
color: green;
}

View File

@ -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');
};

View File

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