0

The development of the mobile terminal landing interface, the runtime found that the text input box display abnormal. If you put the code in toolbar to show no problem, the house ah formPanel shows weird, the effect is as follows enter image description here

mycode:

Ext.define('GasApp.view.main.login.Login',{
    extend : 'Ext.form.Panel',
    xtype : 'loginView',
    requires: [
        'Ext.field.Password',
        'Ext.Button',
        'Ext.field.Toggle',
        'Ext.layout.HBox',
        'Ext.Toast',
        'GasApp.view.main.login.Controller'
    ],
    alternateClassName: 'loginView',
    controller : 'loginCtrl',
    listeners: {
        initialize: 'onLoginInitialize'
    },
    config:{
        padding: '40 30 0 30',
        items: [{
            xtype: 'textfield',
            name: 'account',
            ui : 'text_',
            label: '账号',
            clearIcon:true,
            required: true
        },{
            xtype: 'passwordfield',
            name: 'password',
            label: '密码',
            required: true
        },{
            items: [{
                xtype: 'togglefield',
                name: 'persist',
                label: '记住我',
                labelTextAlign: 'right',
                labelAlign: 'left',
                value: true
            }]
        },{
            xtype: 'button',
            width: '100%',
            text: '登   陆',
            ui: 'action',
            listeners: {
                tap: 'onLoginClick'
            }
        }]
    }
});
Mr. Wu
  • 33
  • 9
  • Looks ok to me: https://fiddle.sencha.com/#view/editor&fiddle/2aop Post a fiddle. – Evan Trimboli Dec 09 '17 at 09:25
  • @EvanTrimboli It is not a problem to run on the fiddle.sencha.com/#view/editor&fiddle/2aop , but the effect I run locally is not consistent with the effect that you give the address. What's the problem? Is the style inconsistent? – Mr. Wu Dec 09 '17 at 09:43
  • My point is that there's some problem that you're not showing in your question, so I can't answer it. – Evan Trimboli Dec 09 '17 at 09:50
  • @EvanTrimboli o thanks ,I'll try other ways. – Mr. Wu Dec 09 '17 at 10:00

0 Answers0