Update of /cvsroot/qooxdoo/qooxdoo/source/script/gui
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv26687/source/script/gui
Modified Files:
Tag: renderer
QxColorCache.js QxFontCache.js QxWidget.js
Log Message:
Moved many styling stuff to the widgets, dramatically reduced size of qooxdoo.css, direct font handling in appearance of QxLabel and QxTextField, default font-size for all qooxdoo widgets is from now on zero.
Index: QxColorCache.js
===================================================================
RCS file: /cvsroot/qooxdoo/qooxdoo/source/script/gui/Attic/QxColorCache.js,v
retrieving revision 1.1.2.4
retrieving revision 1.1.2.5
diff -u -d -r1.1.2.4 -r1.1.2.5
--- QxColorCache.js 16 Jan 2006 16:11:55 -0000 1.1.2.4
+++ QxColorCache.js 24 Jan 2006 16:48:54 -0000 1.1.2.5
@@ -54,7 +54,7 @@
return propValue;
case QxConst.TYPEOF_OBJECT:
- if (propValue == null) {
+ if (propValue == null || propValue instanceof QxColor) {
return propValue;
};
Index: QxFontCache.js
===================================================================
RCS file: /cvsroot/qooxdoo/qooxdoo/source/script/gui/Attic/QxFontCache.js,v
retrieving revision 1.1.2.5
retrieving revision 1.1.2.6
diff -u -d -r1.1.2.5 -r1.1.2.6
--- QxFontCache.js 16 Jan 2006 18:45:56 -0000 1.1.2.5
+++ QxFontCache.js 24 Jan 2006 16:48:54 -0000 1.1.2.6
@@ -50,7 +50,7 @@
break;
case QxConst.TYPEOF_OBJECT:
- if (propValue == null) {
+ if (propValue == null || propValue instanceof QxFont) {
return propValue;
};
Index: QxWidget.js
===================================================================
RCS file: /cvsroot/qooxdoo/qooxdoo/source/script/gui/Attic/QxWidget.js,v
retrieving revision 1.1.2.51
retrieving revision 1.1.2.52
diff -u -d -r1.1.2.51 -r1.1.2.52
--- QxWidget.js 23 Jan 2006 15:17:13 -0000 1.1.2.51
+++ QxWidget.js 24 Jan 2006 16:48:54 -0000 1.1.2.52
@@ -55,9 +55,11 @@
// Allows the user to setup styles and attributes without a
// need to have the target element created already.
- this._htmlProperties = { className : QxWidget.CORE_CLASS + QxConst.CORE_SPACE + this.classname };
- this._htmlAttributes = { "qxhashcode" : this._hashCode };
- this._styleProperties = {};
+ this._htmlProperties = { className : this.classname };
+ this._htmlAttributes = { qxhashcode : this._hashCode };
+ this._styleProperties = { position : QxConst.CORE_ABSOLUTE, fontSize : 0 };
+
+ this.setStyleProperty(QxWidget.BOX_SIZING_PROPERTY, QxWidget.BOX_SIZING_VALUE);
// ************************************************************************
@@ -87,6 +89,20 @@
QxWidget.CORE_CLASS = "QxWidgetCore";
QxWidget.OMIT_CLASS = "QxWidget";
+QxWidget.BOX_SIZING_VALUE = "border-box";
+
+if (QxClient.isGecko())
+{
+ QxWidget.BOX_SIZING_PROPERTY = "MozBoxSizing";
+}
+else if (QxClient.isKhtml())
+{
+ QxWidget.BOX_SIZING_PROPERTY = "khtmlBoxSizing";
+}
+else
+{
+ QxWidget.BOX_SIZING_PROPERTY = "boxSizing";
+};
/*!
Will be calculated later
@@ -1019,6 +1035,7 @@
{
switch(i)
{
+ case QxConst.PROPERTY_POSITION:
case QxConst.PROPERTY_ZINDEX:
case QxConst.PROPERTY_FILTER:
break;
|