diff options
author | Struan Donald <struan@exo.org.uk> | 2013-05-22 17:18:27 +0100 |
---|---|---|
committer | Struan Donald <struan@exo.org.uk> | 2013-05-22 17:18:27 +0100 |
commit | dad37f995a3a8583753b9d4373e978f12acb8b13 (patch) | |
tree | f2dbd16b10b7d2da23710cca16745d3e616de594 /www/js | |
parent | e8c317e5b6ce18b6b882176bdee81363cbda6cc0 (diff) |
partially working textarea extending to bottom of screen on details page
Diffstat (limited to 'www/js')
-rw-r--r-- | www/js/views/details.js | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/www/js/views/details.js b/www/js/views/details.js index bd9f921..9352ae0 100644 --- a/www/js/views/details.js +++ b/www/js/views/details.js @@ -26,6 +26,16 @@ .addClass('noselection'); }, + afterDisplay: function() { + var header = $("div[data-role='header']:visible"), + detail = this.$('#form_detail'), + top = detail.position().top, + viewHeight = $(window).height(), + contentHeight = viewHeight - header.outerHeight(); + + detail.css('height', contentHeight - top ); + }, + onClickButtonPrev: function() { this.updateCurrentReport(); this.navigate( this.prev ); |