Success! Looks like we've fixed this one. According to our records the fix was applied for TOUCH-4237 in a recent build.
  1. #1
    Sencha User
    Join Date
    Mar 2008
    Posts
    24
    Vote Rating
    0
    michael.piecko is on a distinguished road

      0  

    Default [2.2.0 RC] Disabling a form or field hides the value inside textfields

    [2.2.0 RC] Disabling a form or field hides the value inside textfields


    I didn't notice it when i was working on my desktop and using chrome for testing (works correctly), but when disabling a form or field on an iPhone (iPhone 4 in my case), the values disapear in textfields (doesn't happen in select fields). See screenshots attached, with form enabled and disabled:

    test_before.png test_after.png

    As a workaround for my iPhone i patched my app.scss with:

    Code:
    body.x-ios.x-phone .x-field-text.x-item-disabled input, body.x-ios.x-phone .x-field-text.x-item-disabled .x-input-el {
      color: #000;
    }
    A quick testcase for this:

    PHP Code:
        ...

        
    launch: function() {
            
    // Destroy the #appLoadingIndicator element
            
    Ext.fly('appLoadingIndicator').destroy();

            
    // Initialize the main view
            
    Ext.Viewport.add({
                
    xtype'formpanel',
                
    items: [{
                    
    xtype'fieldset',
                    
    title'Form',
                    
    items: [{
                        
    xtype'textfield',
                        
    label'Field 1',
                        
    placeholder'Type something'
                    
    }, {
                        
    xtype'textfield',
                        
    label'Field 2',
                        
    value'Default Text'
                    
    }]
                }, {
                    
    xtype'titlebar',
                    
    title'Test Panel',
                    
    docked'top',
                    
    items: [{
                        
    xtype'button',
                        
    text'Disable',
                        
    formIsDisabledfalse,
                        
    align'right',
                        
    listeners: {
                            
    tap: function(btn) {
                                
    // Get the form
                                
    var form Ext.Viewport.getActiveItem();

                                if (
    btn.formIsDisabled) {
                                    
    btn.formIsDisabled false;
                                    
    btn.setText('Disable');

                                    
    form.enable();
                                } else {
                                    
    btn.formIsDisabled true;
                                    
    btn.setText('Enable');

                                    
    form.disable();
                                }

                            }
                        }
                    }]
                }]
            });

        },

        ... 
    Michael

  2. #2
    Sencha - Senior Forum Manager mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    35,704
    Vote Rating
    750
    mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute

      0  

    Default


    Thanks for the report! I have opened a bug in our bug tracker.

  3. #3
    Sencha - Sencha Touch Dev Team Jamie Avins's Avatar
    Join Date
    Mar 2007
    Location
    Redwood City, California
    Posts
    3,661
    Vote Rating
    19
    Jamie Avins is a jewel in the rough Jamie Avins is a jewel in the rough Jamie Avins is a jewel in the rough

      0  

    Default


    This has been fixed for the next release.

    Sencha Inc

    Jamie Avins

    @jamieavins

Thread Participants: 2

film izle

hd film izle

film sitesi

takipci kazanma sitesi

takipci kazanma sitesi

güzel olan herşey

takipci alma sitesi

komik eğlenceli videolar