-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Description
Hi @troolee,
I am trying to use the gridstack width, changing for 3. Although, this change to 3 columns and the width of external div('.grid-stack') are correct, the width value of "item" stayed in 8,3% and not in 33%.
Is getting so:
https://cloud.githubusercontent.com/assets/3621189/5599368/3ddd6898-92ac-11e4-8a2c-acd65f9f1e32.png
When it should stay that way:
https://cloud.githubusercontent.com/assets/3621189/5599367/3dd99434-92ac-11e4-9cbd-80cc718b62e2.png
The code are:
var options = {width: 3,cell_height: 35,vertical_margin: 10,animate: true};
$('.grid-stack').gridstack(options);
var grid = $('.grid-stack').data('gridstack');
// Begin For
grid.add_widget("<div class='grid-stack-item' data-gs-no-resize='true'><div class='grid-stack-item-content'><div class='grid-heading'><small>Label</small></div><div class='grid-body'><div class='text-center'> </div></div></div></div>', 0, 0, 4, 2, true);
//End For
Att
Mateus Giuliano