From a5ad85784fe3376a3e7a3db2b9ac47b387750a9e Mon Sep 17 00:00:00 2001 From: Michael Ziegler Date: Fri, 30 Jul 2010 14:20:21 +0200 Subject: [PATCH] fix rendering in webkit based engines (although this impl is sorta ugly) --- pyweb/mumble/templates/mumble/mumble.html | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/pyweb/mumble/templates/mumble/mumble.html b/pyweb/mumble/templates/mumble/mumble.html index 8068e84..cd6db70 100644 --- a/pyweb/mumble/templates/mumble/mumble.html +++ b/pyweb/mumble/templates/mumble/mumble.html @@ -94,14 +94,18 @@ this.wnd = new Ext.Window({ title: gettext('Login'), closable: false, + width: 300, + height: 130, + layout: 'fit', items: { - xtype: 'form', + layout: 'form', border: false, + defaults: { anchor: '-20px' }, buttons: [{ text: gettext('Submit'), handler: function(){ - form = this.ownerCt.ownerCt.getForm().getFieldValues(); - Accounts.login(form.username, form.password, + form = this.ownerCt.ownerCt.items.items; + Accounts.login(form[0].getValue(), form[1].getValue(), function(provider, response){ if( response.result.success ){ window.location.reload(); @@ -119,6 +123,7 @@ }], items: [{ xtype: "textfield", + width: 50, fieldLabel: gettext("User name"), name: "username" }, {