Skip to content

Question about line of code. #476

Closed
Closed

Description

@MrBunny956

In anythingSlider.js line 456
w = base.$outer.css('height','').width() - base.outerPad[0];

I notice that this is removing the height of my container element is this on purpose and if so any idea why that is?

Thanks

Activity

  1. Mottie commented on Jan 5, 2013

    @Mottie
    Contributor

    Hmm, that looks like a mistake. The height should be cleared on the base.$wrapper before checking the base.$outer width. This was an attempt to prevent the slider from constantly expanding in height (when the expand option is true) when placed directly inside of the document body. Either way, if the height is set in the css, it shouldn't effect the height of the wrapper.

    I'll double check that the fix I mentioned will work and update the repository.

    Edit: After a bit of testing, it doesn't seem to make any difference with or without that bit of code. I'll go ahead and remove it because it is effecting elements outside the scope of the slider.

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions