1. #1
    Sencha User
    Join Date
    Oct 2010
    Posts
    80
    Vote Rating
    0
    linuxyf is on a distinguished road

      0  

    Default textarea's maxRows is of no effect

    textarea's maxRows is of no effect


    i want a textareafield to show 20 lines text, so i set the maxRows: 20, but only 4 lines text is visible. the code is as following:

    app.js
    Code:
    Ext.Loader.setConfig({ enabled: true});
    
    
    Ext.application({
        name: "Test",
        
        views:[
    		'Single'
        ],
        
        launch: function() {
            Ext.create('TestDriver.view.Single');
        }
    });
    Single.js
    Code:
    Ext.define('Test.view.Single', {
        extend: 'Ext.form.Panel',
        xtype: 'single',
        
        requires: [
    		'Ext.form.FieldSet'
        ],
    
    
        config: {
    		fullscreen: true,
    		layout: 'fit',
    		items: [
    		{
    			xtype: 'fieldset',
    			layout: 'vbox',
    			labelAlign: 'left',
                            labelWidth: '40%',
    			items:[{
    				xtype:	'textareafield',
    				id:		'textarearequestdata',
    				maxRows: 20,
    				cls:	'TextAreaBorder'
    			}]
    		}]
        }
    });

  2. #2
    Sencha - Sencha Touch Dev Team Jamie Avins's Avatar
    Join Date
    Mar 2007
    Location
    Redwood City, California
    Posts
    3,661
    Vote Rating
    20
    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 was a bug that should be fixed in Beta 3.

    Sencha Inc

    Jamie Avins

    @jamieavins

  3. #3
    Sencha User
    Join Date
    Oct 2010
    Posts
    80
    Vote Rating
    0
    linuxyf is on a distinguished road

      0  

    Default


    Jamie Avins, thanks for your quick reply, i see.

  4. #4
    Sencha User
    Join Date
    Oct 2010
    Posts
    80
    Vote Rating
    0
    linuxyf is on a distinguished road

      0  

    Default


    Jamie Avins , this bug still exists in beta3

  5. #5
    Sencha - Sencha Touch Dev Team rdougan's Avatar
    Join Date
    Oct 2008
    Posts
    1,158
    Vote Rating
    6
    rdougan will become famous soon enough

      0  

    Default


    Very strange. This was definitely fixed, but somehow the code got removed. Sorry about that!

    Here is a quick override to fix the issue for now:

    Code:
    Ext.define('Ext.overrides.field.InputMaxRows', {
        overrides: 'Ext.field.Input',
    
        applyMaxRows: function(maxRows) {
            if (maxRows !== null && typeof maxRows !== 'number') {
                throw new Error("Ext.field.Input: [applyMaxRows] trying to pass a value which is not a number");
            }
    
            return maxRows;
        }
    });
    Sencha Inc.
    Robert Dougan - @rdougan
    Sencha Touch 2 and Ext JS 4 Core Team Member, SASS/Theming Wizard.

Thread Participants: 2

Turkiyenin en sevilen filmlerinin yer aldigi xnxx internet sitemiz olan ve porn sex tarzi bir site olan mobil porno izle sitemiz gercekten dillere destan bir durumda herkesin sevdigi bir site olarak tarihe gececege benziyor. Sitenin en belirgin ozelliklerinden birisi de Turkiyede gercekten kaliteli ve muntazam, duzenli porno izle siteleri olmamasidir. Bu yuzden iste. Ayrica en net goruntu kalitesine sahip adresinde yayinlanmaktadir. Mesela diğer sitelerimizden bahsedecek olursak, en iyi hd porno video arşivine sahip bir siteyiz. "The Best anal porn videos and slut anus, big asses movies set..."