fix #7653 styling on password entry
[roojs1] / roojs-bootstrap-debug.js
index 555d787..a458bca 100644 (file)
@@ -26069,22 +26069,21 @@ Roo.bootstrap.form.Password = function(config){
 
 Roo.extend(Roo.bootstrap.form.Password, Roo.bootstrap.form.Input, {
 
-    getAutoCreate : function()
+    onRender : function(ct, position)
     {
-        this.after = {
-            xns : Roo.bootstrap,
-            xtype : 'Button',
-            cls : 'password-toggle'
-        };
+        Roo.bootstrap.form.SecurePass.superclass.onRender.call(this, ct, position);
 
-        return Roo.bootstrap.form.Password.superclass.getAutoCreate.call(this);
-    },
+        this.el.addClass('form-password');
 
-    initEvents : function()
-    {   
-        Roo.bootstrap.form.Password.superclass.initEvents.call(this);
+        this.wrap = this.inputEl().wrap({
+            cls : 'password-wrap'
+        });
+
+        this.toggle = this.wrap.createChild({
+            tag : 'Button',
+            cls : 'password-toggle'
+        });
 
-        this.el.addClass('form-password');
 
         this.toggleEl().addClass('password-hidden');