ducksboard / gridster.js

gridster.js is a jQuery plugin that makes building intuitive draggable layouts from elements spanning multiple columns
http://gridster.net/
MIT License
6.03k stars 1.2k forks source link

Wrong resize-icon #393

Open Daijobou opened 10 years ago

Daijobou commented 10 years ago

Hello,

resize is true and add widget with:

<li data-row="1" data-col="1" data-sizex="1" data-sizey="1" data-max-sizex="1" data-max-sizey="1">Box without resize-icon</li>

hide the resize icon. working fine! :)

But...

The same with a greater widget:

<li data-row="1" data-col="1" data-sizex="4" data-sizey="1" data-min-sizex="4" data-min-sizey="1" data-max-sizex="4" data-max-sizey="1">

data-sizex = data-min-sizex = data-max-sizex = "4" data-sizey = data-min-sizey = data-max-sizey = "1"

The box can't resize (correct!) => but the resize icon show up.

Setting is:

    gridster = $(".gridster ul").gridster({
        widget_base_dimensions: [100, 65],
        widget_margins: [5, 5],
        min_cols: 4,
        max_cols: 4,
        helper: 'clone',
          resize: {
            enabled: true,
            max_size: [4, 4],
            min_size: [1, 1]
          }
    }).data('gridster');