Commit bc78d2aa authored by Jérome Perrin's avatar Jérome Perrin

update static version

parent 8210f8c9
...@@ -18,6 +18,15 @@ ...@@ -18,6 +18,15 @@
var gadget_element; var gadget_element;
return this.getElement().push(function(element) { return this.getElement().push(function(element) {
gadget_element = element; gadget_element = element;
// XXX does not belong here. We need to have an height and width to the
// handsontable element so that it loads only what is displayed.
// XXX This is also very dirty because of assumptions for DREAM page layout (.nav_container and header)
// This is to prevent Error: Security brake: Too much TRs. Please define height for your table, which will enforce scrollbars.
function updateSize() {
$(element).find(".table-container").height($(window).height() - $(".nav_container").height() - $("header").height());
}
$(window).resize(updateSize);
updateSize();
$(element).find(".table-container").handsontable("render"); $(element).find(".table-container").handsontable("render");
}).push(function() { }).push(function() {
// Infinite wait, until cancelled // Infinite wait, until cancelled
......
CACHE MANIFEST CACHE MANIFEST
# This manifest was generated by grunt-manifest HTML5 Cache Manifest Generator # This manifest was generated by grunt-manifest HTML5 Cache Manifest Generator
# Time: Thu Apr 23 2015 06:48:50 GMT+0200 (CEST) # Time: Thu Apr 23 2015 08:36:51 GMT+0200 (CEST)
CACHE: CACHE:
dream/InputModule_viewAddDocumentDialog.js dream/InputModule_viewAddDocumentDialog.js
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment