On 1/5/17, 12:10 AM, "piotrz" <piotrzarzyck...@gmail.com> wrote:
>Currently MDL Tabs example suffer with bug. If you go to example and >started >to play with Tab One, Tab Two you will notice that content >(CustomTabBarPanelItemRenderer) is displaying above TabBar. > >Current usage [1]. Tabs will be rendered first, later TabBar so in the >results in HTML code we have structure [2] where TabBar in DOM is being >added as last element. > >Question: How to add TabBar as first element ? I would be appreciated for >help with this one. What code are you using to add the children? AddElement should call appendChild and put them last. You might also consider whether the TabBar counts as "chrome" like a Panel's TitleBar and how to handle scrolling the content. HTH, -Alex