summaryrefslogtreecommitdiff
path: root/src/client
diff options
context:
space:
mode:
authorAlon Levy <alon@pobox.com>2015-03-07 15:10:26 +0200
committerAlon Levy <alon@pobox.com>2015-03-07 15:10:26 +0200
commit5cb415e933313ce4d54ce6a3da9375b1a1bce34a (patch)
tree33ff55b3b6ceeda592643d64772c3e08bebb9be0 /src/client
parent80961723894cc535e4d3654053cebb06de4e5195 (diff)
client/view/node_info: bug fix of white background while scrolling
Diffstat (limited to 'src/client')
-rw-r--r--src/client/view/node_info.js3
1 files changed, 2 insertions, 1 deletions
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);