Skip to content
This repository has been archived by the owner on Sep 6, 2021. It is now read-only.

Add class 'vertical-scroll' to the working set container when the scrollbar is present #1010

Merged
merged 2 commits into from
Jun 9, 2012

Conversation

jhatwich
Copy link
Member

@jhatwich jhatwich commented Jun 7, 2012

Provides a hook to adjust the layout of a working set item when the
scroll bar pops in, which is useful if you are laying something out to
the right edge of that view.

I ran into the need for this in creating a related files extension.

…present

Provides a hook to adjust the layout of a working set item when teh
scroll bar pops in which is useful if you are laying something out to
the right edge of that view.
@ghost ghost assigned redmunds Jun 7, 2012
* adds the style 'vertical-scroll' if a vertical scroll bar is present
*/
function _adjustForScrollbars() {
var $container = $("#open-files-container");
Copy link
Contributor

Choose a reason for hiding this comment

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

You should be able to use the existing $openFilesContainer (in place of $container) instead of doing this document search.

@jhatwich
Copy link
Member Author

jhatwich commented Jun 8, 2012

Thanks, Randy. I updated it to use the existing variable.

redmunds added a commit that referenced this pull request Jun 9, 2012
Add class 'vertical-scroll' to the working set container when the scrollbar is present
@redmunds redmunds merged commit 8ffbe53 into adobe:master Jun 9, 2012
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants