             measureVirtual(layoutTarget);
         else 
             measureReal(layoutTarget);
+            
+        // Use Math.ceil() to make sure that if the content partially occupies
+        // the last pixel, we'll count it as if the whole pixel is occupied.
+        layoutTarget.measuredWidth = Math.ceil(layoutTarget.measuredWidth);    
+        layoutTarget.measuredHeight = Math.ceil(layoutTarget.measuredHeight);    
+        layoutTarget.measuredMinWidth = Math.ceil(layoutTarget.measuredMinWidth);    
+        layoutTarget.measuredMinHeight = Math.ceil(layoutTarget.measuredMinHeight);    
     }
     
     /**

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


        setRowCount(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(contentWidth + paddingLeft + paddingRight),
                                    Math.ceil(llv.end(llv.length - 1) + paddingBottom));
    }
    

