2016-06-17 24 views
0

我正在试图让.gridster-mobile课保持高度。由于高度被设置为空字符串,因此当前在移动时忽略min_size[0]如何使用角栅格保持高度?

我,我只设置了所有的高度与媒体查询一个临时的解决办法:

@media (max-width: 500px) { 
    .gridster-item{ 
    height:120px !important; 
    } 
} 

,这是gridster设置:

 isMobile: false, // stacks the grid items if true 
     mobileBreakPoint: 600, // if the screen is not wider that this, remove the grid layout and stack the items 
     mobileModeEnabled: true, 

如何时保留行高度手机模式?

回答

3

我张贴了这个问题,因为我没有找到答案,这是本详细记录较少的配置设置:

saveGridItemCalculatedHeightInMobile:true 

这应该节省一些头痛。在配置示例中,这是远离其他移动设置的列表,因此很容易忽视。