You are viewing a plain text version of this content. The canonical link for it is here.
Posted to xap-commits@incubator.apache.org by jm...@apache.org on 2006/11/10 07:30:50 UTC

svn commit: r473225 - /incubator/xap/trunk/src/xap/widgets/Label.js

Author: jmargaris
Date: Thu Nov  9 23:30:50 2006
New Revision: 473225

URL: http://svn.apache.org/viewvc?view=rev&rev=473225
Log:
Fix for checkbox image/text not lining up correctly

Modified:
    incubator/xap/trunk/src/xap/widgets/Label.js

Modified: incubator/xap/trunk/src/xap/widgets/Label.js
URL: http://svn.apache.org/viewvc/incubator/xap/trunk/src/xap/widgets/Label.js?view=diff&rev=473225&r1=473224&r2=473225
==============================================================================
--- incubator/xap/trunk/src/xap/widgets/Label.js (original)
+++ incubator/xap/trunk/src/xap/widgets/Label.js Thu Nov  9 23:30:50 2006
@@ -46,10 +46,10 @@
 	this.table.appendChild(tbody);
 	tbody.appendChild(tr);
 	tr.appendChild(this.td);
-
 	this.span = document.createElement("span");
+	this.span.style.verticalAlign="middle";
 	this.img = document.createElement("img");
-	this.img.align="middle";
+	this.img.style.verticalAlign="middle";
 	this.img.style.display = "none";
 
 	this.td.appendChild(this.img);