From 3183fc0c6021f328e9c4f331599e8783d426645c Mon Sep 17 00:00:00 2001
From: unknown <kpeters@.ariasolutions.com>
Date: Sat, 28 Jan 2012 19:43:51 -0700
Subject: [PATCH] Added "px" to DOM attributes

When setting pixel/size attributes with IE8 and Windows 7, the values cannot just be integers (ex: 253) but must be valid CSS (ex: "253px"). This change converts integers to CSS attributes.
---
 copyright              |   13 +++++++------
 library/gwt/ui/Tree.py |    9 +++++----
 2 files changed, 12 insertions(+), 10 deletions(-)

diff --git a/copyright b/copyright
index bb845a5..49dc550 100644
--- a/copyright
+++ b/copyright
@@ -1,5 +1,5 @@
 This package was debianized by Luke Kenneth Casson Leighton <lkcl@lkcl.net>
-on Thu, 30 Jul 2009 21:20 
+on Thu, 30 Jul 2009 21:20
 
 It was downloaded from http://pyjs.org
 
@@ -39,7 +39,7 @@ Copyright: 2009, Radoslav Kirov
 Copyright: 2009 Yi Choong (http://code.google.com/u/yitchoong/)
 Copyright: 2009 Nick <thretwon@gmail.com>
 Copyright: 2009 hackadelic (http://code.google.com/u/hackadelic/)
-Copyright: 2009 Catalin Patulea <cronos586@gmail.com> 
+Copyright: 2009 Catalin Patulea <cronos586@gmail.com>
 Copyright: 2009 JJ Kunce (http://code.google.com/u/jjkunce)
 Copyright: 2008 Alexei Sokolov
 Copyright: 2009 Carl Roach <carl.roach@gmail.com>
@@ -87,6 +87,7 @@ Copyright: 2012 Maho/Łukasz Mach <maho@pagema.net>
 Copyright: 2012 Vsevolod Fedorov <vsevolod.fedorov@gmail.com>
 Copyright: 2012 Michael Yang <yangofzeal@gmail.com>
 Copyright: 2011 Gustaf Nilsson <gustaf@laserpanda.com>
+Copyright: 2012 Robert Peters <robertpeters@winterlionsoftware.com>
 
 Files: pyjs/src/pyjs/lib/socket.py
 Copyright: 2008-2010, David P. D. Moss.
@@ -150,7 +151,7 @@ License: Other
  Permission to use, copy, modify, and distribute this software
  and its documentation for any purposes and without
  fee is hereby granted provided that this copyright notice
- appears in all copies. 
+ appears in all copies.
  Of course, this soft is provided "as is" without express or implied
  warranty of any kind.
 
@@ -164,11 +165,11 @@ Copyright: 2007, One Laptop Per Child
 License: GPL-2
 
 Files: pyjs/src/pyjs/lib/htmlentitydefs.py pyjs/src/pyjs/lib/cgi.py
-License: PSF 
+License: PSF
 Copyright: 2001, 2002, 2003, 2004, 2005, 2006 Python Software Foundation
 
 Files: pyjd/importers.py pyjd/imputil.py
-License: PSF 
+License: PSF
 Copyright: 2001, 2002, 2003, 2004, 2005, 2006 Python Software Foundation
 Copyright: 2009 Luke Kenneth Casson Leighton <lkcl@lkcl.net>
 
@@ -287,7 +288,7 @@ License: GPL-2
 License: LGPL-2.1
     /usr/share/common-licenses/LGPL-2.1
 
-    This library is free software; you can redistribute it and/or 
+    This library is free software; you can redistribute it and/or
     modify it under the terms of the GNU Lesser General Public
     License as published by the Free Software Foundation; either
     version 2.1 of the License, or (at your option) any later version.
diff --git a/library/gwt/ui/Tree.py b/library/gwt/ui/Tree.py
index 31ff026..92ece0b 100644
--- a/library/gwt/ui/Tree.py
+++ b/library/gwt/ui/Tree.py
@@ -1,5 +1,6 @@
 # Copyright 2006 James Tauber and contributors
 # Copyright (C) 2009 Luke Kenneth Casson Leighton <lkcl@lkcl.net>
+# Copyright (C) 2012 Robert Peters <robertpeters@winterlionsoftware.com>
 #
 # Licensed under the Apache License, Version 2.0 (the "License");
 # you may not use this file except in compliance with the License.
@@ -287,10 +288,10 @@ class Tree(Widget):
             width = DOM.getIntAttribute(selectedElem, "offsetWidth")
             height = DOM.getIntAttribute(selectedElem, "offsetHeight")
 
-            DOM.setIntStyleAttribute(self.focusable, "left", left)
-            DOM.setIntStyleAttribute(self.focusable, "top", top)
-            DOM.setIntStyleAttribute(self.focusable, "width", width)
-            DOM.setIntStyleAttribute(self.focusable, "height", height)
+            DOM.setIntStyleAttribute(self.focusable, "left", "%spx" % left)
+            DOM.setIntStyleAttribute(self.focusable, "top", "%spx" % top)
+            DOM.setIntStyleAttribute(self.focusable, "width", "%spx" % width)
+            DOM.setIntStyleAttribute(self.focusable, "height", "%spx" % height)
 
             DOM.scrollIntoView(self.focusable)
             Focus.focus(self.focusable)
-- 
1.7.4.msysgit.0
