Skip to content
This repository was archived by the owner on Oct 8, 2024. It is now read-only.
This repository was archived by the owner on Oct 8, 2024. It is now read-only.

Wrapper margins are still inherited even when not included in the wrapper object's inheritStyles array #34

Description

@raddevon

I've instantiated my hideShowPassword element not to inherit margin values (since they aren't inherited properly in Firefox. See issue #33.). However, the margins are still being specified on the wrapper element. Here's how I instantiated the element:

$('#password').hideShowPassword(false, true, {
    wrapper: {
      inheritStyles: ['display', 'verticalAlign']
    }
});

Activity

  1. tylersticka commented on Jun 16, 2015

    @tylersticka
    Member

    This is a great catch. I forgot that jQuery.extend also applies to arrays.

  2. self-assigned this
    on Jun 16, 2015
  3. tylersticka commented on Jun 17, 2015

    @tylersticka
    Member

    @raddevon This option is pretty gnarly as-is (we've got some open issues to streamline in the next version), but for now I think I've come up with a backwards-compatible quick-fix.

    Could you give the version in the fix-inheritStyles branch a try for me to verify whether or not it resolves your issue?

  4. raddevon commented on Jun 17, 2015

    @raddevon
    Author

    @tylersticka Yes, this fixes it. Thank you for the quick fix!

  5. tylersticka commented on Jun 17, 2015

    @tylersticka
    Member

    Thanks, @raddevon !

    I'm gonna re-open this issue until it's merged into master, just in case any other users are having the problem before then.

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

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions