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

check if the content and the wrapper exists before computing the sizes#123

Open
alexnaiman wants to merge 8 commits intosouhe:master from
alexnaiman:checking-if-the-content-exists-before-computing-sizes
Open

check if the content and the wrapper exists before computing the sizes #123
alexnaiman wants to merge 8 commits intosouhe:master from
alexnaiman:checking-if-the-content-exists-before-computing-sizes

Conversation

@alexnaiman
Copy link

@alexnaiman alexnaiman commented Jun 18, 2018

I had some problems with the functions scrollToBottom and refresh calling them from componentDIdMount()/componentDidUpdate() that showed that the container field of the object was null.
35433320_1968985546486676_9056465179620933632_n

I believe that one should verify if the fields are defined and if not to initialise the requested variables with zero (width and height).

Alexandru Naiman and others added 6 commits June 19, 2018 01:36
...s of the container avoiding componentDidMount errors when calling scrollToBottom/refresh
...s of the container avoiding componentDidMount errors when calling scrollToBottom/refresh
...efore-computing-sizes' into checking-if-the-content-exists-before-computing-sizes
Copy link
Owner

souhe commented Jul 5, 2018

@alexnaiman thanks for your work. I left to minor comments

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

Reviewers

@souhe souhe Awaiting requested review from souhe

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

2 participants

Comments

AltStyle によって変換されたページ (->オリジナル) /