Explorar o código

fix issue 235 scrollbar detection

Tanguy Pruvot %!s(int64=15) %!d(string=hai) anos
pai
achega
86cc3bdbda
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      src/agenda.js

+ 1 - 1
src/agenda.js

@@ -336,7 +336,7 @@ function Agenda(element, options, methods, viewName) {
 		setOuterWidth(stripeTDs.slice(0, -1), colWidth);
 		setOuterWidth(topTDs.slice(1, -2), colWidth);
 		
-		var scrollbar=body.get().scrollHeight!=body.get().clientHeight;
+		var scrollbar=body[0].scrollHeight!=body[0].clientHeight;
 
 		if (scrollbar) {
 			setOuterWidth(topTDs.slice(-2, -1), clientWidth - axisWidth - colWidth*(colCnt-1));