Skip to main content

Search and Top Navigation

Ticket #5280: 0001-Subpixel-rendering.2.patch


File 0001-Subpixel-rendering.2.patch, 0.9 KB (added by AzaToth, March 26, 2010 09:21PM UTC)

updated to use ~~

From 06c1fa920bc8ce0138a9a4490b46256af70d6b70 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Carl=20F=C3=BCrstenberg?= 
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 (towards zero).

Signed-off-by: Carl Fürstenberg 
---
 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..20eab06 100644
--- a/ui/jquery.ui.position.js
+++ b/ui/jquery.ui.position.js
@@ -127,6 +127,9 @@ $.fn.position = function( options ) {
 			}
 		});
 
+		position.top = ~~position.top;
+		position.left = ~~position.left;
+
 		if ( $.fn.bgiframe ) {
 			elem.bgiframe();
 		}
-- 
1.7.0

Download in other formats:

Original Format