Skip to content

Update facebook.js#4

Open
fredericpetitdev wants to merge 5 commits into
boynux:masterfrom
fredericpetitdev:patch-2
Open

Update facebook.js#4
fredericpetitdev wants to merge 5 commits into
boynux:masterfrom
fredericpetitdev:patch-2

Conversation

@fredericpetitdev
Copy link
Copy Markdown
Contributor

  • adding support for data-width, default to 250 if it's not specified
  • fixing errors
  • adding link documentation

adding support for data-width, default to 250 if it's not specified
because with actual code, when we set to false, sharing is even possible, so with new code it's seems works good, default to true
Comment thread facebook.js
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

250px is only applicable for "standard" layout, by setting width default value to this in other layouts it might cause problems. I suggest adding width to template only when it's provided.
Like:

if (width) {
    // inject data-width="{{width}}" to template
}

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants