Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

When dragging an item to the last column an unusable column appears on the grid #922

Open
lmarquinez opened this issue Aug 12, 2024 · 0 comments

Comments

@lmarquinez
Copy link

lmarquinez commented Aug 12, 2024

Im using a vertical fixed gridster with a minimum and maximum number of rows and fixed columns. When I drag a item to the last column, another column appears but it can't be used and it looks weird. It is true that then that column does not exist but it is displayed when grid are displayed.I don't know if it is an error in my configuration or if it is a bug, if it will be fixed in the next versions.

Anyway it looks like it is not taking into account the last column to not apply the margin that is added between grid items.

Right now I'm with Angular 16 and angular-gridster2 16.0.0 versions, and this is my configuration:

      gridType: GridType.VerticalFixed,
      compactType: CompactType.None,
      margin: 20,
      outerMargin: false,
      outerMarginTop: null,
      outerMarginRight: null,
      outerMarginBottom: null,
      outerMarginLeft: null,
      mobileBreakpoint: 640,
      minCols: 24,
      maxCols: 24,
      minRows: 12,
      maxRows: 24,
      maxItemCols: 100,
      minItemCols: 2,
      maxItemRows: 100,
      minItemRows: 2,
      maxItemArea: 2500,
      minItemArea: 1,
      defaultItemCols: 2,
      defaultItemRows: 2,
      fixedColWidth: 24,
      fixedRowHeight: 41,
      keepFixedHeightInMobile: true,
      keepFixedWidthInMobile: false,
      scrollSensitivity: 10,
      scrollSpeed: 20,
      enableEmptyCellClick: false,
      enableEmptyCellContextMenu: false,
      enableEmptyCellDrop: false,
      enableEmptyCellDrag: false,
      emptyCellDragMaxCols: 50,
      emptyCellDragMaxRows: 50,
      ignoreMarginInRow: false,
      draggable: {
        enabled: false,
      },
      resizable: {
        enabled: false,
      },
      swap: false,
      pushItems: false,
      disablePushOnDrag: false,
      disablePushOnResize: false,
      pushDirections: { north: true, east: true, south: true, west: true },
      pushResizeItems: false,
      displayGrid: DisplayGrid.None,
      disableWindowResize: false,
      disableWarnings: false,
      scrollToNewItems: false

b725ad69-346b-478f-9a6f-a1627708e07a
angular-gridster2/gridSizes

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant