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
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions src/project/WorkingSetView.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 :)


_redraw();
}

Expand Down