Permalink
Browse files

Use ~100% height for the note listing

  • Loading branch information...
jmcfarlane committed Apr 3, 2012
1 parent b7a3c07 commit ef01bbda3976784df95d47b88a244d1f46cb86db
Showing with 6 additions and 0 deletions.
  1. +6 −0 notable/static/app.js
View
@@ -93,6 +93,7 @@
$('#persist').show();
$('#delete').show();
$('#editor').show();
+ $('#listing').hide();
setTimeout("$('#content textarea').focus()", 100);
}
}
@@ -233,13 +234,17 @@
};
view.setColumns(columns);
+ $(div).height($(window).height() - $('#buttons').height() - 30);
table.draw(view, options);
// Add navigation listener
google.visualization.events.addListener(table, 'select',
function(e) {
that.edit(data, table.getSelection()[0].row);
});
+
+ // Redraw if the window size changes
+ $(window).resize(this.perform_search);
}
/**
@@ -251,6 +256,7 @@
$('#persist').hide();
$('#delete').hide();
$('#editor').hide();
+ $('#listing').show();
$('#create').show();
$('#refresh').show();
$('#content #tags').val('');

0 comments on commit ef01bbd

Please sign in to comment.