aboutsummaryrefslogtreecommitdiffstats
path: root/www/js
diff options
context:
space:
mode:
authorStruan Donald <struan@exo.org.uk>2013-06-25 14:32:27 +0100
committerStruan Donald <struan@exo.org.uk>2013-06-25 14:32:27 +0100
commit3bf04e904e008a130b080131573c0fb794ffe93b (patch)
treea400162e3668938926cdfbd0eb76e4c269c177df /www/js
parent0b2b47291d15eb5ef49911359c25bb7daf4ac775 (diff)
update height of details screen before display. Fixes #462
Diffstat (limited to 'www/js')
-rw-r--r--www/js/views/details.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/www/js/views/details.js b/www/js/views/details.js
index b11dac1..996ece9 100644
--- a/www/js/views/details.js
+++ b/www/js/views/details.js
@@ -27,8 +27,8 @@
},
- afterDisplay: function() {
- var header = $("div[data-role='header']:visible"),
+ beforeDisplay: function() {
+ var header = this.$("div[data-role='header']:visible"),
detail = this.$('#form_detail'),
top = detail.position().top,
viewHeight = $(window).height(),