Ticket #5280: 0001-Subpixel-rendering.patch

File 0001-Subpixel-rendering.patch, 1.0 KB (added by AzaToth, 10 years ago)

Eventual implementation

  • ui/jquery.ui.position.js

    From 29c6e75f517876b9561245931777c117c625f874 Mon Sep 17 00:00:00 2001
    From: =?UTF-8?q?Carl=20F=C3=BCrstenberg?= <carl@excito.com>
    Date: Fri, 26 Mar 2010 21:06:51 +0100
    Subject: [PATCH] Subpixel rendering
    MIME-Version: 1.0
    Content-Type: text/plain; charset=UTF-8
    Content-Transfer-Encoding: 8bit
    
    As we can't really render an object on a subpixel, we can avoid the
    issue of bug #5280 by rounding the resulting values down to it's
    integer part. Though using Math.floor to handle negative values
    correctly.
    
    Signed-off-by: Carl Fürstenberg <carl@excito.com>
    ---
     ui/jquery.ui.position.js |    3 +++
     1 files changed, 3 insertions(+), 0 deletions(-)
    
    diff --git a/ui/jquery.ui.position.js b/ui/jquery.ui.position.js
    index f01640e..f7ddc1e 100644
    a b $.fn.position = function( options ) { 
    127127                        }
    128128                });
    129129
     130                position.top = Math.floor( position.top );
     131                position.left = Math.floor( position.left );
     132
    130133                if ( $.fn.bgiframe ) {
    131134                        elem.bgiframe();
    132135                }