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

Disable horizontal scrolling in working set view. #1845

Merged
merged 1 commit into from
Oct 16, 2012

Conversation

gruehle
Copy link
Member

@gruehle gruehle commented Oct 16, 2012

This is a workaround for #1789.

Due to WebKit bug 99379, on OSX, when scrollbars are set to auto-hide, any item that is placed where the horizontal scrollbar will appear cannot be clicked.

Turning off horizontal scrolling doesn't seem too bad since there is no hierarchy in the working set list, so every item is aligned to the left side. I considered adding tooltips to the items, but that was distracting.

We could limit this change to OSX only if needed.

@@ -381,6 +381,9 @@ define(function (require, exports, module) {
ViewUtils.addScrollerShadow($openFilesContainer[0], null, true);
ViewUtils.sidebarList($openFilesContainer);

// Disable horizontal scrolling until WebKit bug #99379 is fixed
$openFilesContainer.css("overflow-x", "hidden");
Copy link
Contributor

Choose a reason for hiding this comment

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

Is there a reason why you are doing this in JS instead of in CSS?

Copy link
Member Author

Choose a reason for hiding this comment

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

Yes - ViewUtils.sidebarList() sets overflow:auto in JavaScript, so CSS overrides don't work. We need to set this in JS, after calling ViewUtils.sidebarList().

Copy link
Contributor

Choose a reason for hiding this comment

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

That sucks :)

@ghost ghost assigned RaymondLim Oct 16, 2012
@gruehle
Copy link
Member Author

gruehle commented Oct 16, 2012

@RaymondLim - Randy reviewed the code but he's running Snow Leopard so he can't reproduce the original bug. Would you mind reviewing this request and make sure it fixes the bug? Thanks!

@RaymondLim
Copy link
Contributor

Looks good. Merging.

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.

3 participants