Open ashanvabs opened 9 years ago
Exactly what i am searching for, just had the issue myself. The content is higher than the actual widget in the gridster, which is annoying, sind the widget overlaps the widgets under this one.
I think i found myself a workaround (at least for the moment):
In Method "fn.generate_stylesheet = function(opts)" i extended the declaration of the CSS-markdown for "data-sizey" (in my code its around 3684) from this:
for (var y = 1; y <= opts.rows; y++) {
styles += (opts.namespace + ' [data-sizey="' + y + '"] { height:' +
(y * opts.widget_base_dimensions[1] +
(y - 1) * (opts.widget_margins[1] * 2)) + 'px; }\n');
}
to this:
for (var y = 1; y <= opts.rows; y++) {
styles += (opts.namespace + ' [data-sizey="' + y + '"] { height:' +
(y * opts.widget_base_dimensions[1] +
(y - 1) * (opts.widget_margins[1] * 2)) + 'px; }\n');
styles += (opts.namespace + ' [data-sizey="' + y + '"] div.content { height:' +
((y * opts.widget_base_dimensions[1] +
(y - 1) * (opts.widget_margins[1] * 2)) - 40) + 'px; }\n');
}
Every content inside my widgets will be rendered in a div with the classname "content". Thats how i got it working for now.
What need is I want to specify the tile height of each tile or tile's hieght should increase when content are getting bigger.