FSN#35094 Buttontext verbergen als het niet meer past.
svn path=/Website/trunk/; revision=31826
This commit is contained in:
@@ -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))
|
||||||
|
|||||||
Reference in New Issue
Block a user