From 949c3f8d4ad9c9d2b4961838195dc06daac1bec0 Mon Sep 17 00:00:00 2001 From: Jos Groot Lipman Date: Mon, 5 Dec 2016 11:49:27 +0000 Subject: [PATCH] FSN#35094 Buttontext verbergen als het niet meer past. svn path=/Website/trunk/; revision=31826 --- APPL/Localscripts/iface.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/APPL/Localscripts/iface.js b/APPL/Localscripts/iface.js index a201e8a57f..5c1266b7f7 100644 --- a/APPL/Localscripts/iface.js +++ b/APPL/Localscripts/iface.js @@ -640,7 +640,9 @@ $(function () { var w = $(window).width(); var p = $(this).position(); 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") .data("smallsize", Math.max(w, smallsize||0))