responsive design: after each termlist update check the window size and adjust the...
authorWolfram Schneider <wosch@indexdata.dk>
Tue, 2 Jul 2013 13:18:51 +0000 (13:18 +0000)
committerWolfram Schneider <wosch@indexdata.dk>
Tue, 2 Jul 2013 13:18:51 +0000 (13:18 +0000)
This should fix the problem that after manual resize, both termlist
left and bottom appeared.

experiments/spclient/mkws.js

index 8340905..b3594de 100644 (file)
@@ -185,6 +185,9 @@ function my_onterm(data) {
 
     var termlist = document.getElementById("mkwsTermlists");
     replaceHtml(termlist, acc.join(''));
+
+    if (mkws_config.responsive_design)
+        mkws_mobile_resize();
 }
 
 function add_single_facet(acc, caption, data, max, cclIndex) {