-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Closed
Description
Software version (please complete the following information):
- Browser chrome 76.0.3809.132
- Vue Version 2.6.10
- vue-grid-layout Version: 2.3.5 (working fine in 2.3.4)
Describe the bug
In some cases cols will autoresize to 1 col bigger after resize.
To Reproduce
Steps to reproduce the behavior:
- Instance a grid
- Add an item and resize it to 6 columns
- See error (after release mouse button will be resized to 7)
Expected behavior
While resize action the preview looks ok (6 columns) but when i release button it resizes to 7.
Additional context
Screen resolution 1920*1200
Maybe the problem is for these piece of code where the col its changed to 7 instead of 6:
// Helper for generating column width
calcColWidth: function calcColWidth() {
var colWidth = (this.containerWidth - this.margin[0] * (this.cols + 1)) / this.cols;
Metadata
Metadata
Assignees
Labels
No labels