incubator-xap-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jmarga...@apache.org
Subject svn commit: r471053 - in /incubator/xap/trunk/src/xap/widgets: BaseWidget.js Label.js
Date Fri, 03 Nov 2006 23:35:43 GMT
Author: jmargaris
Date: Fri Nov  3 15:35:42 2006
New Revision: 471053

URL: http://svn.apache.org/viewvc?view=rev&rev=471053
Log:
FIx for buttons sizing issues

Removed:
    incubator/xap/trunk/src/xap/widgets/BaseWidget.js
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=471053&r1=471052&r2=471053
==============================================================================
--- incubator/xap/trunk/src/xap/widgets/Label.js (original)
+++ incubator/xap/trunk/src/xap/widgets/Label.js Fri Nov  3 15:35:42 2006
@@ -22,13 +22,12 @@
  */
 
 Xap.provide("xap.widgets.Label");
-Xap.require("xap.widgets.BaseWidget");
 
 xap.widgets.Label = function() {
-	xap.widgets.BaseWidget.call(this);
 	
 	// create label structure
 	this.table = document.createElement("table");
+	this._rootDomNode  = this.table;
 	this.table.cellPadding = "0px";
 	this.table.cellSpacing = "0px";
 	this.td = document.createElement("td");
@@ -48,7 +47,6 @@
 	this.td.appendChild(this.img);
 	this.td.appendChild(this.span);
 
-	this._rootDomNode.appendChild(this.table);
 	this._rootDomNode.style.padding = "2px";
 
 	xap.widgets.styleSet(this.table, {width:"100%", height: "100%"});
@@ -68,8 +66,6 @@
 	this.setEnabled("true");
 	this.setAutoWrap("false");
 }
-
-Xap.setupClassAsSubclassOf("xap.widgets.Label", "xap.widgets.BaseWidget");
 
 xap.widgets.styleSet = function(el, properties) {
 	var style = el.style;



Mime
View raw message