From 5cb415e933313ce4d54ce6a3da9375b1a1bce34a Mon Sep 17 00:00:00 2001 From: Alon Levy Date: Sat, 7 Mar 2015 15:10:26 +0200 Subject: client/view/node_info: bug fix of white background while scrolling --- src/client/view/node_info.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/client/view') diff --git a/src/client/view/node_info.js b/src/client/view/node_info.js index 9aca84e3..7be52907 100644 --- a/src/client/view/node_info.js +++ b/src/client/view/node_info.js @@ -7,6 +7,7 @@ var d = null, node, setup_done = false, info = $('.info'), + info_container = $('.info-container'), form_element = $('#editbox'), delete_button = $('#edit-node-dialog__delete'), form = _.object(model_types.all_attributes.map(function (attr) { @@ -185,7 +186,7 @@ function show(_graph, d) { // hack - should be able to set max-height via css percentage, no? max_height = $(document.body).innerHeight() - $('.info')[0].getBoundingClientRect().top * 2; - info[0].style['max-height'] = String(max_height) + 'px'; + info_container[0].style['max-height'] = String(max_height) + 'px'; _.each(visible_attributes, function (attr) { var element = edit_element_for_attribute(attr); -- cgit v1.3.1