 
         setColumnCount(visibleColumns);  
         setIndexInView(firstColInView, lastColInView);
-        layoutTarget.setContentSize(maxX + paddingRight, maxY + paddingBottom);      	      
+
+        // Make sure that if the content spans partially over a pixel to the right/bottom,
+        // the content size includes the whole pixel.
+        layoutTarget.setContentSize(Math.ceil(maxX + paddingRight),
+                                    Math.ceil(maxY + paddingBottom));      	      
     }
 
 

            measureVirtual(layoutTarget);
        else 
            measureReal(layoutTarget);
    }
    
    /**


        setColumnCount(index - startIndex);
        setIndexInView(startIndex, endIndex);

        // Make sure that if the content spans partially over a pixel to the right/bottom,
        // the content size includes the whole pixel.
        layoutTarget.setContentSize(Math.ceil(llv.end(llv.length - 1) + paddingRight),
                                    Math.ceil(contentHeight + paddingTop + paddingBottom));
    }
    
    /**
