-
Notifications
You must be signed in to change notification settings - Fork 1.2k
feat(gridster): allow more columns than 6 #420
base: master
Are you sure you want to change the base?
Conversation
Is it possible to set this manually in the application? |
This is a bugfix if you want to have more than 6 columns, why should we set that in the application? |
I meant the possibility to have more than 3 columns. |
Maybe it is possible but why should we leave a bug in the dashing? |
Maybe a better solution would be to add an optional config object. Store the default config ( This would allow people to override any of gridster's settings on a per-dashboard basis. I'd argue that moving into Dashing 2.0, then we should use this approach to customising all aspects of such components. Lodash provides the same extend functionality, if jQuery is undesirable. So instead of setting Dashing.widget_margins in your dashboard to customise, you'd set |
I did not modify the I just added the What is the reason to make |
Let me rephrase my last sentence (which was a generalisation, not specific to you): So instead of setting The reason why I make this suggestion is that you may want this flag, but another developer may want to set a different flag. If we add each one by one, pretty soon we will have replicated Gridster's API and we'll have a mess of flags. |
I've already said my peace on this PR -- I don't support adding one more flag. |
I'm not able to reproduce the problem. I can set |
The problem is that widgets can only be 0-5 columns wide, irrespective of the dashboard width. If you specify more than 5 columns wide for a widget it fills the entire dashboard width. I encountered this issue with a dashboard I am developing. To maximise the use of screen space, I have set the column width to 50px, with most widgets being 4 or 5 columns wide. The problem occurs when I have a larger widget that takes up 10 columns, it fills the entire dashboard width. I can confirm that the proposed fix solves this problem. |
No description provided.