Rendering problem

69 views
Skip to first unread message

Alexander Wesselburg

unread,
Aug 16, 2013, 5:46:26 AM8/16/13
to themp...@googlegroups.com
hi,

ii hava a view like this:

IOL_Info.SupplierData = M.View.design({

    childViews: 'nameLabel cityLabel name',

    nameLabel : M.LabelView.design({
        value: 'Name: '
    }),

    cityLabel : M.LabelView.design({
        value: 'Ort: '
    }),

    name: M.LabelView.design({
        computedValue: {
            contentBinding: {
                target: IOL_Info.supplierDetailController,
                property: 'supplierDetailItem'
            },
            operation: function(v) {
                if(v) {
                    return v.get('name');
                }
            }
        },
        isInline: NO
    })
})

on a other view i will use this view:

content: M.ScrollView.design({
        childViews : 'content',
        content : IOL_Info.SupplierData
    }),

this works fine but if i use this on a 2nd view then i have double contend on rendering. is this a bug ?

Ricardo Pabón

unread,
Oct 11, 2013, 6:24:06 AM10/11/13
to themp...@googlegroups.com
Hi Alexander,

Maybe what you had in mind could be solved by using M.ContainerView instead of M.View; also I would avoid using the same name for the parent view and for the child view; instead of "content" "content", use "content" "subContent", for example.

I don't really understand what your problem is, what do you mean by double content? Do you get twice IOL_Info.SupplierData in the same ScrollView?

Regards,
Ricardo
Reply all
Reply to author
Forward
0 new messages