Skip to content

Conversation

@alexcjohnson
Copy link
Collaborator

So you can turn autosize back on again, using relayout or update, after it's been turned off and replaced by explicit height & width.

@antoinerg please review. Shouldn't have any adverse impact on the autosize work you did recently as this only affects edit behavior (and only the older modes, not react)

// can't use impliedEdits for this because behavior depends on vi
if(['width', 'height'].indexOf(ai) !== -1) {
if(vi) {
doextra('autosize', null);
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

FYI doextra(attr, null) works (with some caveats) just like relayout(gd, attr, null) in that it deletes that attribute from layout

@alexcjohnson
Copy link
Collaborator Author

Oh hmm, @antoinerg turns out I did impact at least your autosize tests - need to look at whether those failures make sense.

@antoinerg
Copy link
Contributor

I don't think it interferes with any of my work on responsive and autosize. The tests that are failing are from before my time. I will need to take a closer look 👀

@antoinerg
Copy link
Contributor

antoinerg commented Oct 17, 2018

Looks good to me! You can merge it in 💃

@alexcjohnson alexcjohnson merged commit 435a656 into master Oct 17, 2018
@alexcjohnson alexcjohnson deleted the autosize-edits branch October 17, 2018 23:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug something broken

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants