Skip to content
This repository has been archived by the owner on Mar 7, 2018. It is now read-only.

How to leave blank space between widgets #745

Open
alpha-qu opened this issue Jun 26, 2017 · 1 comment
Open

How to leave blank space between widgets #745

alpha-qu opened this issue Jun 26, 2017 · 1 comment

Comments

@alpha-qu
Copy link

Unable to leave blank space between widgets. If I specify the widgets as follows:
widget1 widget2 widget3 widget4
widget5 widget6
widget7 widget8 widget9 widget10
widget11 widget12 widget13 widget14

It will be automatically convert into this:
widget1 widget2 widget3 widget4
widget5 widget6 widget9 widget10
widget7 widget8 widget13 widget14
widget11 widget12

I mean to say that the widgets will get repositioned and push themselves so that no space is remaining in between. I don't want this feature. How to remove it?
Thanks in advance :)

@Diluke
Copy link

Diluke commented Sep 23, 2017

You can set widgets in data-row and data-col in your dashboard file dashboards/*****.erb, like it's used in sample.

< li data-row="1" data-col="2" data-sizex="1" data-sizey="1" \>

This widget will be put in first row, and second column
Remember to remove script (Dashing.gridsterLayout) from your dashboard if you have any, it's overwriting positions on dashboard load.

You can change widget margins in assets/javascripts/application.coffee

Dashing.on 'ready', ->
  Dashing.widget_margins ||= [5, 5]

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants