X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/057604ab62f70f42fe0392ee32036be81ab52d9e..e2e94b4feb7f08974999a16c720911d0094c3797:/wolnelektury/static/js/widget.js?ds=inline diff --git a/wolnelektury/static/js/widget.js b/wolnelektury/static/js/widget.js index 7012e6404..d0581746c 100644 --- a/wolnelektury/static/js/widget.js +++ b/wolnelektury/static/js/widget.js @@ -64,3 +64,10 @@ widget.style.width = "160px"; widget.style.padding = "10px"; widget.style.fontSize = "12px"; form.style.paddingTop = "10px"; + +/* resize - if needed */ +if(widget.getAttribute('width') == '140'){ + logo.setAttribute('width', '140'); + inputText.setAttribute('size', '10'); + widget.style.width = "140px"; +}