Skip to content
This repository was archived by the owner on May 29, 2019. It is now read-only.
This repository was archived by the owner on May 29, 2019. It is now read-only.

Improvement to Collapse link function #6214

Open
@OpenSiteMobile

Description

@OpenSiteMobile

Bug description:

The Link function uses the wrong width for the horizontal collapse element, when it is suppose to expand back to original size, (at least in my version of AngularJS).

I modified this function:

function getScrollFromElement(gs_elm) { var output; if (horizontal) { output = { width: horizontal_width + 'px' }; } else { output = { height: gs_elm.scrollHeight + 'px' }; } return output; }
...by adding a horizontal_width = element.width() variable to the link function, which is set to the correct initial width of the element. This seems to work, but as always, there maybe other considerations I'm not privy to.

Angular: v1.5.8

UIBS: v2.1.3

Bootstrap: v3.3.7

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions