Fix shaking when transition to feedback

This commit is contained in:
Gustavo Maximiliano Cortez 2016-11-16 14:40:56 -03:00
commit 2b6d60f96f
No known key found for this signature in database
GPG key ID: 15EDAD8D9F2EB1AF
3 changed files with 12 additions and 4 deletions

View file

@ -78,4 +78,8 @@ angular.module('copayApp.controllers').controller('sendController', function($sc
}
});
$scope.$on("$ionicView.afterEnter", function() {
$scope.showForm = true;
});
});

View file

@ -28,7 +28,9 @@
}
.user-feedback {
border-top: 1px solid $subtle-gray;
padding: 20px;
width: 100%;
margin-bottom: 20px;
}
.send-feedback-star {
height: 1rem;

View file

@ -31,9 +31,11 @@
<div class="comment">
<span translate>{{comment}}</span>
</div>
<textarea class="user-feedback" ng-model="feedback.value" rows="5" placeholder="Your ideas, feedback, or comments" autofocus></textarea>
<button ng-disabled="!feedback.value" type="submit" class="button button-standard button-primary" ng-click="sendFeedback(feedback.value, false)" translate>
Send
</button>
<div ng-if="showForm">
<textarea class="user-feedback" ng-model="feedback.value" rows="5" placeholder="Your ideas, feedback, or comments" autofocus></textarea>
<button ng-disabled="!feedback.value" type="submit" class="button button-standard button-primary" ng-click="sendFeedback(feedback.value, false)" translate>
Send
</button>
</div>
</ion-content>
</ion-view>