Material Design Lite layout has changed after installing Iron:router

谁说我不能喝 提交于 2019-12-11 04:35:26

问题


I created a meteor project and added krazyeom:material-design-lite package. Then I created 2 simple html files, one that contains

<head>...</head>

and another that contains

<body>...</body>

My design looks something like this:

After I added the iron:router and only replaced <body> with <template name="layout"> and </body> with </template>.

Router.route('/', {name: 'layout'});

It looks like this:

As you can see the design is now not 100% height; and if I resize to mobile resolution, it doesn't appear the 3 lines icon to show the sidebar.

What could be the problem ?


回答1:


Well i had the same issues.As of now there is some issues while using mdl with iron router . Even there are issues with Template.xyz.events not firing with mdl custom tags .

This issues will be resloved soon (Hope so)

https://github.com/Zodiase/meteor-mdl

This repo is under active development in supporting mdl in meteor . Please follow this repo for any advancement.

Other wise use similar addon like https://atmospherejs.com/materialize/materialize

which does the material design like mdl and i am using it for couple of my project and have no issues



来源:https://stackoverflow.com/questions/31382590/material-design-lite-layout-has-changed-after-installing-ironrouter

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!