提交 9dba3d14 编写于 作者: B Benjamin Pasero

remove tree fake row

上级 96238218
......@@ -147,14 +147,6 @@
opacity: 0.3;
}
/* Fake row */
.monaco-tree .monaco-tree-rows > .monaco-tree-row.fake {
position: absolute;
visibility: hidden;
top: -1000px;
left: -1000px;
z-index: -100;
}
/* Bare row */
.monaco-tree.bare .monaco-tree-wrapper.drop-target,
......
......@@ -307,10 +307,6 @@ export class Tree extends Events.EventEmitter implements _.ITree {
return this.model.hasTrait(trait, element);
}
public withFakeRow(fn:(container:HTMLElement)=>any):any {
return this.view.withFakeRow(fn);
}
getNavigator(): INavigator<any> {
return new MappedNavigator(this.model.getNavigator(), i => i && i.getElement());
}
......
......@@ -390,9 +390,6 @@ export class TreeView extends HeightMap implements IScrollable {
private lastPointerType:string;
private lastClickTimeStamp: number = 0;
private fakeRow: HTMLElement;
private fakeContent: HTMLElement;
private _viewHeight: number;
private renderTop: number;
private renderHeight: number;
......@@ -480,15 +477,6 @@ export class TreeView extends HeightMap implements IScrollable {
this.rowsContainer = document.createElement('div');
this.rowsContainer.className = 'monaco-tree-rows';
this.fakeRow = document.createElement('div');
this.fakeRow.className = 'monaco-tree-row fake';
this.fakeContent = document.createElement('div');
this.fakeContent.className = 'content';
this.fakeRow.appendChild(this.fakeContent);
this.rowsContainer.appendChild(this.fakeRow);
var focusTracker = DOM.trackFocus(this.domNode);
focusTracker.addFocusListener((e: FocusEvent) => this.onFocus(e));
focusTracker.addBlurListener((e: FocusEvent) => this.onBlur(e));
......@@ -731,10 +719,6 @@ export class TreeView extends HeightMap implements IScrollable {
this.scrollableElement.onElementInternalDimensions();
}
public withFakeRow(fn:(container:HTMLElement)=>any):any {
return fn(this.fakeContent);
}
public focusNextPage(eventPayload?:any): void {
var lastPageIndex = this.indexAt(this.scrollTop + this.viewHeight);
lastPageIndex = lastPageIndex === 0 ? 0 : lastPageIndex - 1;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册