1. #1
    Sencha User
    Join Date
    Dec 2011
    Posts
    12
    Vote Rating
    0
    Unkind is on a distinguished road

      0  

    Default Unanswered: trouble with layout

    Unanswered: trouble with layout


    This is code of window and screenshot, what i have now

    Ext.define('SD.view.SDDetail', {
    extend: 'Ext.window.Window',
    alias: 'widget.sddetail',
    title: "Создание заявки",
    height: 620,
    width: 850,
    layout: 'fit',
    border: false,
    modal: true,
    isDemandReadOnly: false,
    changeStatusOnly: false,

    initComponent: function () {
    var me = this;
    var user = TR.user;

    var f = new Ext.form.FormPanel({
    xtype: 'form'
    , labelWidth: 60
    , frame: true
    , items: [{
    fieldLabel: 'Text'
    , xtype: 'textfield'
    , anchor: '-18'
    }, {
    layout: 'column'
    , defaults: {
    columnWidth: 0.5
    //, layout: 'form'
    , border: false
    , xtype: 'panel'
    , bodyStyle: 'padding:0 18px 0 0'
    }
    , items: [{
    defaults: { anchor: '100%' }
    , items: [{
    xtype: 'combo'
    , fieldLabel: 'Combo 1'
    , store: ['Item 1', 'Item 2']
    }, {
    xtype: 'datefield'
    , fieldLabel: 'Date'
    }]
    }, {
    defaults: { anchor: '100%' }
    , items: [{
    xtype: 'combo'
    , fieldLabel: 'Combo 2'
    , store: ['Item 1', 'Item 2']
    }, {
    xtype: 'timefield'
    , fieldLabel: 'Time'
    }]
    }]
    }, {
    fieldLabel: 'Text Area'
    , xtype: 'textarea'
    , anchor: '-18 -80'
    }]
    });

    this.items = [f];

    this.tbar = {
    xtype: 'toolbar',
    height: 27,
    items: [
    {
    xtype: "tbspacer"
    }, "-", {
    xtype: "tbspacer"
    },
    {
    text: "Прикрепленные файлы",
    icon: "Content/images/btnAttach.gif",
    disabled: true,
    handler: function (btn, e) { ShowAttachments(r.id, true, me.isDemandReadOnly); }
    }, "-", {
    xtype: "tbspacer"
    }, {
    text: "История статусов",
    icon: "Content/images/btnHistory.gif",
    disabled: true,
    handler: function (btn, e) { ShowStatusesHistory(r.id, true); }
    }, "-", {
    xtype: "tbspacer"
    }, {
    text: "Информация по сопроводительной карточке",
    icon: "Content/images/btnComplect.gif",
    disabled: true,
    handler: function (btn, e) { ShowComponents(r.id, true, me.isDemandReadOnly); }
    }, "-", {
    icon: "Content/images/btnPrint.gif",
    text: "Сопроводительная карточка изделия",
    disabled: true,
    handler: function (btn, e) { DemandCardForm(r.id); }
    }

    ]
    };

    this.buttons = [
    {
    text: "Сохранить",
    action: 'save'
    , disabled: me.isDemandReadOnly || user.SdUserViewOnly
    }, {
    xtype: "button",
    text: "Отмена",
    handler: function (btn, e) {
    me.close();
    }
    }
    ];

    // me.on('show', function () {
    // me.down('kontragentcombo').focus(false, 250);
    // });

    me.callParent(arguments);
    }

    http://i038.radikal.ru/1208/f2/cdc7498b8fd8.jpg

    when i uncomment , layout: 'form'

    i have error

    namespace is undefined

    if (namespace === from || namespace.substring(0, from.length) === from) {


    i want to have like this http://i066.radikal.ru/1208/f8/7688407cd886.jpg ... what i must do?

  2. #2
    Sencha - Support Team scottmartin's Avatar
    Join Date
    Jul 2010
    Location
    Houston, Tx
    Posts
    8,912
    Answers
    655
    Vote Rating
    443
    scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future

      0  

Thread Participants: 1

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..." hd porno faketaxi