             setColumnCount(0);
             setIndexInView(-1, -1);
             if (layoutTarget.numElements == 0)
-                layoutTarget.setContentSize(paddingLeft + paddingRight, paddingTop + paddingBottom);
+                layoutTarget.setContentSize(Math.ceil(paddingLeft + paddingRight),
+                                            Math.ceil(paddingTop + paddingBottom));
             return;         
         }
 


        setColumnCount(index - startIndex);
        setIndexInView(startIndex, endIndex);
        layoutTarget.setContentSize(llv.end(llv.length - 1) + paddingRight, contentHeight + paddingTop + paddingBottom);
    }
    
    /**


        setColumnCount(visibleColumns);  
        setIndexInView(firstColInView, lastColInView);

        // 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));      	      
    }


