Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CHE-7139: Fix redraw selection on horizontal scroll. #8355

Merged
merged 8 commits into from
Jan 24, 2018
Original file line number Diff line number Diff line change
Expand Up @@ -1319,6 +1319,13 @@ private boolean fireCancellableEvent(GwtEvent<?> event) {
private void ensureTreeElement() {
DivElement element = Document.get().createDivElement();
element.addClassName(treeStyles.styles().tree());

rootContainer = Document.get().createDivElement();
rootContainer.addClassName(treeStyles.styles().contentTree());
rootContainer.setId("content-Tree");

element.appendChild(rootContainer);

setElement(element);
}

Expand Down Expand Up @@ -1381,7 +1388,7 @@ private int[] getVisibleRows(List<Node> visible, int count) {
}

private Element getRootContainer() {
return getElement();
return rootContainer;
}

private void onAdd(StoreAddEvent event) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,8 @@ interface CSS extends CssResource {

String tree();

String contentTree();

String loading();
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -120,14 +120,20 @@
}

.tree {
display: inline-block;
min-width: 100%;
display: relative;
font-size: 0.85em;
outline: none;
overflow-y: auto;
overflow: auto;
padding-bottom: 2px;
}

.contentTree {
min-width: 100%;
position: absolute;
overflow: hidden;
left: 0;
}

.tree:focus {
outline: none;
}
Expand Down