Skip to content
This repository has been archived by the owner on Jul 8, 2020. It is now read-only.

ToolBarView not rendered if no Element at position M.CENTER #90

Open
sebastianwerler opened this issue Dec 12, 2012 · 0 comments
Open

Comments

@sebastianwerler
Copy link
Contributor

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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant