Update of /cvsroot/qooxdoo/qooxdoo/source/script/appearance
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv11479/source/script/appearance
Modified Files:
Tag: renderer
QxAppearanceTheme-Default.js
Log Message:
Improved grid layout and depending widgets, changed usage of alowStretchX and allowStretchY inside the grid layout, modified appearance to fix some bugs through the new behaviour
Index: QxAppearanceTheme-Default.js
===================================================================
RCS file: /cvsroot/qooxdoo/qooxdoo/source/script/appearance/Attic/QxAppearanceTheme-Default.js,v
retrieving revision 1.1.2.13
retrieving revision 1.1.2.14
diff -u -d -r1.1.2.13 -r1.1.2.14
--- QxAppearanceTheme-Default.js 25 Jan 2006 11:22:08 -0000 1.1.2.13
+++ QxAppearanceTheme-Default.js 26 Jan 2006 08:54:43 -0000 1.1.2.14
@@ -97,7 +97,9 @@
height : QxConst.CORE_AUTO,
horizontalChildrenAlign : QxConst.ALIGN_CENTER,
verticalChildrenAlign : QxConst.ALIGN_MIDDLE,
- stretchChildrenOrthogonalAxis : false
+ stretchChildrenOrthogonalAxis : false,
+ allowStretchY : false,
+ allowStretchX : false
};
}
});
@@ -1097,12 +1099,15 @@
return {
hideFocus : true,
border : QxBorderObject.presets.thinInset,
- paddingTop : 2,
- paddingRight : 4,
- paddingBottom : 2,
- paddingLeft : 4,
+ paddingTop : 1,
+ paddingRight : 3,
+ paddingBottom : 1,
+ paddingLeft : 3,
allowStretchY : false,
- font : this.font
+ allowStretchX : true,
+ font : this.font,
+ width : QxConst.CORE_AUTO,
+ height : QxConst.CORE_AUTO
};
},
@@ -1115,11 +1120,13 @@
{
initial : function(vWidget, vTheme)
{
- return QxUtil.mergeObjectWith(vTheme.initialFrom(vWidget, "text-field"),
- {
- height : 50,
+ return QxUtil.mergeObjectWith(vTheme.initialFrom(vWidget, "text-field"), {
overflow : QxConst.CORE_AUTO
});
+ },
+
+ state : function(vWidget, vTheme) {
+ return vTheme.stateFrom(vWidget, "text-field");
}
});
@@ -1152,7 +1159,8 @@
width : 120,
height : QxConst.CORE_AUTO,
border : QxBorderObject.presets.inset,
- backgroundColor : this.bgcolor
+ backgroundColor : this.bgcolor,
+ allowStretchY : false
};
}
});
@@ -1210,7 +1218,8 @@
paddingTop : 0,
paddingRight : 3,
paddingBottom : 0,
- paddingLeft : 2
+ paddingLeft : 2,
+ allowStretchY : true
});
},
|