Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 1074333

Browse files
committed
enable y-scrolling on outline widget
1 parent 3b647eb commit 1074333

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

src/gwt/src/org/rstudio/studio/client/workbench/views/source/DocumentOutlineWidget.css

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
@external gwt-Label;
22

3+
.panel {
4+
overflow-y: auto;
5+
}
6+
37
.container {
48
width: 100%;
59
height: 100%;

src/gwt/src/org/rstudio/studio/client/workbench/views/source/DocumentOutlineWidget.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -219,6 +219,7 @@ public DocumentOutlineWidget(TextEditingTarget target)
219219
tree_.addStyleName(RES.styles().tree());
220220

221221
panel_ = new FlowPanel();
222+
panel_.addStyleName(RES.styles().panel());
222223
panel_.add(tree_);
223224

224225
container_.add(panel_);
@@ -517,6 +518,7 @@ private boolean isActiveNode(Scope node)
517518
// Styles, Resources etc. ----
518519
public interface Styles extends CssResource
519520
{
521+
String panel();
520522
String container();
521523

522524
String leftSeparator();

0 commit comments

Comments
 (0)