【问题标题】:how to retain height using angular-gridster?如何使用角度网格保持高度?
【发布时间】:2016-06-17 18:38:46
【问题描述】:

我绞尽脑汁尝试获取.gridster-mobile 类以保持高度。由于高度设置为空字符串,它目前在移动设备中忽略min_size[0]。

我有一个临时修复,我只是使用媒体查询设置所有高度:

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

这是网格设置:

      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,

在移动模式下如何保持行高?

【问题讨论】:

    标签: javascript angularjs angular-ui gridster


    【解决方案1】:

    我发布这个问题是因为我没有找到答案,也就是这个记录较少的配置设置:

    saveGridItemCalculatedHeightInMobile:true
    

    这应该会让您头疼。在示例配置中,这与其他移动设置相距甚远,因此很容易被忽略。

    【讨论】:

      猜你喜欢
      • 2011-08-20
      • 1970-01-01
      • 2021-07-26
      • 2021-01-17
      • 1970-01-01
      • 1970-01-01
      • 2016-01-02
      • 2019-03-10
      • 1970-01-01
      相关资源
      最近更新 更多