FSN#35094 Buttontext verbergen als het niet meer past.

svn path=/Website/trunk/; revision=31826
This commit is contained in:
Jos Groot Lipman
2016-12-05 11:49:27 +00:00
parent a52f0b0e69
commit 949c3f8d4a

View File

@@ -640,7 +640,9 @@ $(function () {
var w = $(window).width(); var w = $(window).width();
var p = $(this).position(); var p = $(this).position();
var smallsize = $(this).data("smallsize"); var smallsize = $(this).data("smallsize");
if (p.top > 20) // shifted to next line? var pheader = $(this).closest('div.fcltheader');
var headertop = pheader.length?pheader.position().top:0;
if (p.top > headertop + 20) // shifted to next line?
{ {
$(this).addClass("smallbuttons") $(this).addClass("smallbuttons")
.data("smallsize", Math.max(w, smallsize||0)) .data("smallsize", Math.max(w, smallsize||0))