The-M-Project icon indicating copy to clipboard operation
The-M-Project copied to clipboard

ToolBarView not rendered if no Element at position M.CENTER

Open sebastianwerler opened this issue 12 years ago • 0 comments

The following will lead to an unrendered Toolbar:

footer: M.ToolbarView.design({
        childViews: 'title',

        title:M.LabelView.design({
            value: 'FOOTER',
            anchorLocation:M.LEFT
        }),

        anchorLocation: M.BOTTOM
    })

We must add an empty element in the middle to render it:

footer: M.ToolbarView.design({
        childViews: 'middle title',

        middle: M.LabelView.design({
             value: '',
             anchorLocation: M.CENTER
        })

        title:M.LabelView.design({
            value: 'FOOTER',
            anchorLocation:M.LEFT
        }),

        anchorLocation: M.BOTTOM
    })

It must be possible to render ToolBars without having an element in position M.CENTER.

sebastianwerler avatar Dec 12 '12 13:12 sebastianwerler