lundi 23 juin 2014

Textarea scrollbar not showing up on mobile devices



  1. Thank you for reporting this bug. We will make it our priority to review this report.







  2. Exclamation Textarea scrollbar not showing up on mobile devices



    Textarea scrollbar not showing up on mobile devices





    Using ST 2.3.1, see code below. It doesn't matter if I have maxRows there or not, the scrollbar still won't show up. To clarify, the scrollbar shows up in Chrome on my desktop but not when I am running it as an iOS or Android build. When I am running it as an Android or iOS app on my device (built using ST cmd), I see a textarea (and can type in it fine) but there is no scrollbar and therefore no way to scroll the text in the textarea. When I try to scroll the textarea, the entire page scrolls instead.

    Code:



    Ext.define('App.CreateNotePage', {
    extend: 'Ext.Container',


    requires: [
    'Ext.form.FieldSet',
    'Ext.field.TextArea'
    ],

    config: {
    scrollable: true,
    fullscreen: true,
    items: [


    {
    xtype: 'fieldset',
    title: 'Required',
    items: [
    {
    xtype: 'textfield',
    itemId: 'subject',
    maxLength: 256,
    autoCapitalize: true,
    autoComplete: true,
    autoCorrect: true
    },
    {
    xtype: 'selectfield',
    cls: 'note-form',
    itemId: 'type',
    autoSelect: false,
    store: 'Notes.NoteType'
    },
    {
    xtype: 'textareafield',
    itemId: 'noteTxt',
    maxLength: 4000,
    maxRows: 2
    }
    ]
    }
    ]
    }
    });













Sencha Cmd 4.0.5 Beta is Now Available

Turkiyenin en sevilen filmlerinin yer aldigi porno internet sitemiz olan ve kostenlose porno 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.


ViewModel links binding not working

Hi, I am trying to bind a 'User' model to a form view when somebody clicks an actioncolumn button in a grid. I am trying to use links + reference config in ViewModel:

Code:



onEditUser: function (id) {
if (this.getView()) {
this.getView().removeAll();
this.getView().add(Ext.create('GE.view.user.UserDetailView', {
links: {
theUser: {
reference: 'GE.model.user.User',
id: id
}
}));
}
},

User model:

Code:



Ext.define('GE.model.user.User', {
extend: 'GE.model.Base',
idProperty: 'id',
fields: [
'firstName',
'lastName',
{
name: 'name', convert: function (value, record) {
return record.get('firstName') + ' ' + record.get('lastName');
}
},
'username',
'password',
'email',
'phone'
],
proxy: {
url: '/user'
}
});

This does not work. It issues a request to fetch user with given id, but the binding never happens.

Moreover, the following piece of code (which I found in ViewModel jsdoc) does not work, the callbacks never get called eventhough requests are made to server to fetch users with id 1 and 2.

Code:



var rec = new GE.model.user.User({
id: 2,
firstName: 'Ned',
lastName: 'Stark'
});
var viewModel = Ext.create('Ext.app.ViewModel', {
session: new Ext.data.Session(),
links: {
theUser: {
reference: 'GE.model.user.User',
id: 1
},
otherUser: rec
}
});


viewModel.bind('{theUser.firstName}', function(v) {
console.log(v);
});
viewModel.bind('{otherUser.firstName}', function(v) {
console.log(v);
});

Off course, if i try to manually load the record by id and bind it to ViewModel, everything works as expected.

I've also tried using all kinds of session configs (session: new Ext.data.Session(), session: true, without session) on views (parent or only detail) with no success.

I also have to mention i've tried using both extjs-5.0.0.736 and extjs-5.0.0.970, the latter being commercial version.

Thanks,

Marius





Sencha cmd causing app to pull resources from /build

I have generated an app skeleton using "sencha generate". When I delete the /build dir everything stops working. Why is Sencha-cmd authoring my bootstrap.* files to point to resources in /build?

I am in the process of figuring out what directories and files to check into SVN and am wondering why I need /build since this dir should only contain generated "deploy-able" artifacts not needed for development.





Association in XTemplate

Hi all,

I can't seem to find other topics in the SenArch forums regarding this issue. I tried a few search terms and came up with nothing.


How do you use associations in XTemplates?


Usually you just put curly braces around the field you want to access ie {category} and then some Ext Voodoo happens and you have the category on your webpage.


I haven't been able to do this with hasOne associations though and I'm unsure where to look for the information.


I have the following model.



Code:



Ext.define('App.model.matchModel', {
extend: 'Ext.data.Model',

requires: [
'Ext.data.Field',
'Ext.data.association.HasOne'
],
uses: [
'App.model.giftModel',
'App.model.needModel'
],

fields: [
{
name: 'status',
type: 'int'
}
],

hasOne: [
{
associationKey: 'gift',
model: 'App.model.giftModel'
},
{
associationKey: 'need',
model: 'App.model.needModel'
}
]
});

I'm also not 100% sure what the json should look like. I'm assuming something like this? My store root is "results"

Code:



{
"results":{
"status": 0,
"gift": <myGiftInfo>,
"need": <myNeedInfo>
}
}

Is this the correct format for the json? I can access the field "status', but I can't seem to get to the gift and need. I have tried <tpl for='gift'></tpl>, but that didn't work. So I'm not really sure if it's my json being wrong or if my Model/Store isn't setup correctly.

I've read some topics stating you should "intercept" the data going to the tpl from the model and then create your own arrays. Though I'm not sure how one would do this in SenArch.


Any advice would be helpful, even if it's a link to documentation that I missed.


Thanks in advance,

Justin.





Referencing outside Components (loader/paths)



  1. Thank you for reporting this bug. We will make it our priority to review this report.







  2. Default Referencing outside Components (loader/paths)



    Referencing outside Components (loader/paths)





    In extjs4, I routinely had shared components that were used across different apps. Some as simple as a combo or as complex as an entire panel. All that was required to allow me to reference these shared components, was to add the "paths" config to the application, and a required tag:

    Code:



    ....
    paths: Ext.Loader.setPath("sharedComponents", "/sharedComponents/extjs5"),
    ....
    requires: ['sharedComponents.combo1']
    ....

    However, in ext5 when I do this, the framework doesn't seem to register the loader path and returns an error as though it's expecting combo 1 to be in "http://...app/view/sharedComponents/combo1"

    The only way I've found to get around this, is to wait for the viewport to render, then manually add the components where I want them. This is obviously far from ideal - since I can't reference the xtypes easily - or have them load up automatically.

    Has anyone else seen this issue, or know if there's an easy fix?














Combobox list item keep marking on last selected item



  1. Thank you for reporting this bug. We will make it our priority to review this report.







  2. Default Combobox list item keep marking on last selected item



    Combobox list item keep marking on last selected item





    Hi,

    I'm working on Sencha Touch 2.3.

    I have same many comboboxes using same store. And i have problem using them.


    I selected an item for the combo_1.

    I click on the combo_2 then it display same list of items as comb_1.

    But the selected item on combo_1 is already marked on this list.

    So i can not select it again. I have to select another item, then click again and select the good item.


    I'm appreciated you reply! Thank you !