Permalink
Browse files

Small fixes.

git-svn-id: https://qooxdoo-contrib.svn.sourceforge.net/svnroot/qooxdoo-contrib@20517 09f7d036-9b2a-0410-8fbe-9cff4eb17569
  • Loading branch information...
1 parent 272a14e commit 4cfa463239173ffc409f603709193eeac9c9cec1 cboulanger committed Jul 13, 2010
Showing with 23 additions and 3 deletions.
  1. +1 −1 demo/default/source/class/dialog/demo/Application.js
  2. +22 −2 source/class/dialog/Login.js
@@ -396,7 +396,7 @@ qx.Class.define("dialog.demo.Application",
{
var loginWidget = new dialog.Login({
image : "dialog/logo.gif",
- text : "<h3>Please log in</h3><p>Using 'demo'/'demo'</p>",
+ text : "Please log in, using 'demo'/'demo'",
callback : this.sampleCallbackFunc,
context : this
});
@@ -42,7 +42,20 @@ qx.Class.define("dialog.Login",
check : "String",
nullable : true,
apply : "_applyText"
+ },
+
+ /**
+ * The name of the font in the theme that should be applied to
+ * the text
+ */
+ textFont :
+ {
+ check : "String",
+ nullable : true,
+ init : "bold",
+ apply : "_applyTextFont"
}
+
},
/*
@@ -91,6 +104,11 @@ qx.Class.define("dialog.Login",
this._text.setValue( value );
this._text.setVisibility( value ? "visible" : "excluded" );
},
+
+ _applyTextFont : function( value )
+ {
+ this._text.setFont( value );
+ },
/*
---------------------------------------------------------------------------
@@ -110,7 +128,9 @@ qx.Class.define("dialog.Login",
var groupboxContainer = new qx.ui.groupbox.GroupBox().set({
contentPadding: [16, 16, 16, 16]
});
- groupboxContainer.setLayout( new qx.ui.layout.VBox );
+ var layout = new qx.ui.layout.VBox(10);
+ layout.setAlignX("center");
+ groupboxContainer.setLayout( layout );
this.add( groupboxContainer );
/*
@@ -124,9 +144,9 @@ qx.Class.define("dialog.Login",
* add text
*/
this._text = new qx.ui.basic.Label();
- this._text.setRich(true);
this._text.setAllowStretchX(true);
this._text.setVisibility("excluded");
+ this.setTextFont("bold");
groupboxContainer.add( this._text );

0 comments on commit 4cfa463

Please sign in to comment.