You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
My English is poor, this is my first time to open an issue.
If you want a responsive gridster, you can try this :
function girdsterResize ( ){
//use the resize_widget_dimensions method, the variable baseDiemensionWidth is measured by yourself according to the container of gridster
gridsterObj.resize_widget_dimensions({
widget_base_dimensions: [baseDiemensionWidth, 100]
});
};
I found this answer from the Issues, but I also found it not work when I change to another router( i am using Angular to do a SPA)
After I debug my programmer , i found the solution to resolve this question.
At the source code of jquery.gridster.js, the method add_style_tag has an if statement
if (!document.getElementById(cssID))
Gridster.js create the <style> and insert into the ,if you change to another router , the statement always be false.
By remove the element which has ID called cssID before the statement, I realize a responsive gridster:
$('#'+cssID).remove();
The text was updated successfully, but these errors were encountered:
My English is poor, this is my first time to open an issue.
If you want a responsive gridster, you can try this :
I found this answer from the Issues, but I also found it not work when I change to another router( i am using Angular to do a SPA)
After I debug my programmer , i found the solution to resolve this question.
At the source code of jquery.gridster.js, the method add_style_tag has an if statement
Gridster.js create the <style> and insert into the ,if you change to another router , the statement always be false.
By remove the element which has ID called cssID before the statement, I realize a responsive gridster:
The text was updated successfully, but these errors were encountered: