Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

fix issue #204 sets default column width#1160

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
Siemienik merged 1 commit intoexceljs:masterfromAlanscut:issue_204
Mar 31, 2020

Conversation

Alanscut
Copy link
Member

Changes

constEnums=require('./enums');
constcolCache=require('../utils/col-cache');

constDEFAULT_COLUMN_WIDTH=9;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

I'm really happy to read your pull requests, good job. I had some issues with width before, so I feel twice satisfaction with your changes 👍
but I'm not sure, that it's the correct way to set a const value,
I think that should be property for worksheet and/or workbook, with a possibility to change it by a user.

May I'm wrong, so please clear me this and tell what are you thinking? 😄

Alanscut reacted with laugh emoji
Copy link
Member

@SiemienikSiemienikMar 22, 2020
edited
Loading

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

Even if I wrote a comment, I think these PR fix some issues anyway, so I approve it to merge 👍

Alanscut reacted with thumbs up emoji
Copy link
MemberAuthor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

@Siemienik First of all, thank you very much for your approval, this will become my motivation. I really like exceljs, it is very helpful for my work, so I am happy to contribute a little bit of my own power to this software.

  • When the user does not set the column width, I will set a default value for the column.
// single column settingsheet.getColumn(3).width=10;
  • Users can globally set the column width of the entire worksheet
worksheet.properties.defaultColWidth=47;

@alubbe
Copy link
Member

@Siemienik should we merge this?

@Siemienik
Copy link
Member

I confirm that it works ok withxlsx-renderer

@SiemienikSiemienik merged commit46adde7 intoexceljs:masterMar 31, 2020
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@SiemienikSiemienikSiemienik approved these changes

Assignees
No one assigned
Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

3 participants
@Alanscut@alubbe@Siemienik

[8]ページ先頭

©2009-2025 Movatter.jp