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 existing row styles when using spliceRows#737

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
guyonroche merged 2 commits intoexceljs:masterfromcxam:fix-splicerows-styles
Apr 11, 2019

Conversation

cxam
Copy link
Contributor

@cxamcxam commentedFeb 3, 2019

This PR fixes the style issues reported in#305 and#697 to copy over any existing styles already applied to rows. I have also included additional tests for this fix.

@alubbe
Copy link
Member

I'm really not familiar with how styles work, but is this related to#722@Siemienik ?

@Siemienik
Copy link
Member

@alubbe it is quite different issue

#722 prevent about duplicating references when reading.

this.getRow(i+nExpand).values=rSrc.values;
// eslint-disable-next-line no-loop-func
rSrc.eachCell({includeEmpty:true},function(cell,colNumber){
this.getRow(i+nExpand).getCell(colNumber).style=cell.style;
Copy link
Member

Choose a reason for hiding this comment

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

hmm.. have we 100% thatcell.style object hasn't multiple references from some different cells?
may should we use deep copy here?

@cxam@alubbe what are You thinking about it?

Copy link
ContributorAuthor

Choose a reason for hiding this comment

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

@Siemienik do you think that would be necessary because the row that we get the style for each cell gets set to undefined anyway?

Copy link
Member

Choose a reason for hiding this comment

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

I worry about case like this one#669

Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@SiemienikSiemienikSiemienik left review comments

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

Successfully merging this pull request may close these issues.

4 participants
@cxam@alubbe@Siemienik@guyonroche

[8]ページ先頭

©2009-2025 Movatter.jp