2016-06-17 26 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 

這應該節省一些頭痛。在配置示例中,這是遠離其他移動設置的列表,因此很容易忽視。