From: Wolfram Schneider Date: Tue, 2 Jul 2013 13:18:51 +0000 (+0000) Subject: responsive design: after each termlist update check the window size and adjust the... X-Git-Tag: 0.9.1~366 X-Git-Url: http://sru.miketaylor.org.uk/?a=commitdiff_plain;h=29e39ac03d2113ed476d9dcfbe171958e5a5679f;p=mkws-moved-to-github.git responsive design: after each termlist update check the window size and adjust the termlist position. This should fix the problem that after manual resize, both termlist left and bottom appeared. --- diff --git a/experiments/spclient/mkws.js b/experiments/spclient/mkws.js index 8340905..b3594de 100644 --- a/experiments/spclient/mkws.js +++ b/experiments/spclient/mkws.js @@ -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) {