This module is awesome, thank you!
I'd like to ask a way to configure a custom fixed width? (I need to have a spreadsheet with 830px, for example)

CommentFileSizeAuthor
#8 Capturemarginleft200.png29.57 KBFH

Comments

infojunkie’s picture

Thanks for your feedback!
Currently, there isn't a way to set the width explicitly. You can control the width from the code by editing sheetnode.js, function Drupal.sheetnode.startUp(), and changing the line

this.sheet.InitializeSpreadsheetControl(Drupal.settings.sheetnode.element, Drupal.settings.sheetnode.editMode ? 700 : 0;

to

this.sheet.InitializeSpreadsheetControl(Drupal.settings.sheetnode.element, Drupal.settings.sheetnode.editMode ? 700 : 0, 830);

where the added parameter is the desired width.

In the future, I will add controls for sheet width and height.

Hope this helps!

fraguas’s picture

wow! Thanks, Kratib! It fits like a glove in my needs!

infojunkie’s picture

Status: Active » Postponed

Postponed until I work on controls for sheet width and height.

umina’s picture

I believe the example above is outdated a bit.

Look for this line

this.spreadsheet.InitializeSpreadsheetControl(Drupal.settings.sheetnode.element, 700);

And change it to this

this.spreadsheet.InitializeSpreadsheetControl(Drupal.settings.sheetnode.element, 700,700);

where the second 700 is the width of the spreadsheet.

This is a GREAT module!
/Len

k3vin’s picture

Is it possible to set a fluid width with percent value or a padding on the right side instead of fixed size?

infojunkie’s picture

Assigned: fraguas » Unassigned
Status: Postponed » Fixed

Here's how I fixed the width problem in the latest dev:
* By default, the spreadsheet extends to the available width given to the DIV.
* Clicking the SocialCalc icon in the bottom-right corner of the sheet takes the sheet fullscreen. Clicking it again restores its original position.

Someone please try it (12 hours from now) and let me know if it works!

k3vin’s picture

infojunkie, your patch works for me. Fluid width and the cool fullscreen feature works too. Thank you!

FH’s picture

StatusFileSize
new29.57 KB

bonjour,
je n'écris pas assez bien l'anglais pour m'expliquer dans cette langue.

Je construit actuellement un nouveau thème pour le site de mon école.

je me suis aperçu que la marge gauche du contenant dans lequel je place un contenu sheetnode avait une influence sur l'aspect du côté droit du tableau.

La disposition et la largeur de la partie principale de ce tableau est la bonne, mais l'écart entre le tableau et la barre verticale de navigation droite correspond à cette marge.

Si à la place d'une marge externe (margin) j'utilise une marge interne (padding) je n'ai pas ce problème, mais ce n'est pas ce que je recherche.

merci de votre aide

infojunkie’s picture

@FH: je crois comprendre ce qui se passe, merci pour l'info. Je vais essayer de reproduire puis resoudre ce probleme. A l'avenir, je prefererais que tu ouvres un nouveau ticket au lieu d'en reutiliser un existant.

infojunkie’s picture

@FH: pour m'aider a reproduire ce probleme, j'aurais besoin de 1) soit ton theme en entier, 2) soit accès lecture a ton site Drupal.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.