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

widget size and screen size #337

Open
dav3860 opened this issue Mar 24, 2014 · 3 comments
Open

widget size and screen size #337

dav3860 opened this issue Mar 24, 2014 · 3 comments

Comments

@dav3860
Copy link

dav3860 commented Mar 24, 2014

Hi,
Is it possible to make the widgets size proportional to the screen size ?

@hicolour
Copy link

hicolour commented May 7, 2014

you may extend this script to calculate size

<script type='text/javascript'>
$(function() {
  // These settings override the defaults set in application.coffee. You can do this on a per dashboard basis.
  Dashing.gridsterLayout('[{"col":2,"row":1},{"col":1,"row":1},{"col":3,"row":1},{"col":2,"row":2},{"col":3,"row":2},{"col":1,"row":2},{"col":5,"row":1},{"col":4,"row":2},{"col":2,"$
  Dashing.widget_base_dimensions = [370, 340]
  Dashing.numColumns = 5
});
</script>

@stefanahman
Copy link

How do you specify more columns? I'd tried Dashing.numColumns = 5 in the console, but nothing happened.

@terraboops
Copy link
Contributor

Duplicates #339

Should be fixed by #420

Please close this issue.

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

4 participants