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/09/22 17:05:17 UTC

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

Author: jmargaris
Date: Fri Sep 22 10:05:17 2006
New Revision: 449001

URL: http://svn.apache.org/viewvc?view=rev&rev=449001
Log:
fixed cell padding/spacing

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=449001&r1=449000&r2=449001
==============================================================================
--- incubator/xap/trunk/src/xap/widgets/Label.js (original)
+++ incubator/xap/trunk/src/xap/widgets/Label.js Fri Sep 22 10:05:17 2006
@@ -36,12 +36,15 @@
 	xap.widgets.BaseWidget.call(this);
 	
 	this.table = document.createElement('table');
+	this.table.cellPadding = "0px";
+	this.table.cellSpacing = "0px";
 	this.td = document.createElement('td');
 	this.br = document.createElement('br');
 	
 	var tbody = document.createElement('tbody');
 	var tr = document.createElement('tr');
 	
+	
 
 	this.table.appendChild(tbody);
 	tbody.appendChild(tr);
@@ -56,6 +59,7 @@
 	this.td.appendChild(this.img);
 	
 	this._rootDomNode.appendChild(this.table);
+	this._rootDomNode.style.padding="2px";
 	
 	xap.widgets.styleSet(this.table, {width:'100%', height: '100%'});
 	xap.widgets.styleSet(this.td, {width:'100%', height: '100%'});