Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
xxadev
vscode
提交
f740c599
V
vscode
项目概览
xxadev
/
vscode
与 Fork 源项目一致
从无法访问的项目Fork
通知
2
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
V
vscode
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
f740c599
编写于
7月 19, 2018
作者:
J
Johannes Rieken
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
breadcrumbs - fix reveal before layout (once again)
上级
dcd5ea85
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
13 addition
and
10 deletion
+13
-10
src/vs/workbench/browser/parts/editor/breadcrumbsControl.ts
src/vs/workbench/browser/parts/editor/breadcrumbsControl.ts
+1
-1
src/vs/workbench/browser/parts/editor/breadcrumbsPicker.ts
src/vs/workbench/browser/parts/editor/breadcrumbsPicker.ts
+12
-9
未找到文件。
src/vs/workbench/browser/parts/editor/breadcrumbsControl.ts
浏览文件 @
f740c599
...
...
@@ -276,7 +276,6 @@ export class BreadcrumbsControl {
this
.
_contextViewService
.
showContextView
({
render
:
(
parent
:
HTMLElement
)
=>
{
picker
=
createBreadcrumbsPicker
(
this
.
_instantiationService
,
parent
,
element
);
picker
.
setInput
(
element
);
let
listener
=
picker
.
onDidPickElement
(
data
=>
{
this
.
_contextViewService
.
hideContextView
();
this
.
_widget
.
setFocused
(
undefined
);
...
...
@@ -307,6 +306,7 @@ export class BreadcrumbsControl {
pickerArrowOffset
=
(
data
.
left
+
(
data
.
width
*
.
3
))
-
x
;
}
picker
.
layout
(
pickerHeight
,
pickerWidth
,
pickerArrowSize
,
Math
.
max
(
0
,
pickerArrowOffset
));
picker
.
setInput
(
element
);
return
{
x
,
y
};
},
onHide
:
()
=>
{
...
...
src/vs/workbench/browser/parts/editor/breadcrumbsPicker.ts
浏览文件 @
f740c599
...
...
@@ -37,6 +37,7 @@ export abstract class BreadcrumbsPicker {
protected
readonly
_disposables
=
new
Array
<
IDisposable
>
();
protected
readonly
_domNode
:
HTMLDivElement
;
protected
readonly
_arrow
:
HTMLDivElement
;
protected
readonly
_treeContainer
:
HTMLDivElement
;
protected
readonly
_tree
:
HighlightingWorkbenchTree
;
protected
readonly
_focus
:
dom
.
IFocusTracker
;
...
...
@@ -66,17 +67,16 @@ export abstract class BreadcrumbsPicker {
this
.
_arrow
.
style
.
borderColor
=
`transparent transparent
${
color
.
toString
()}
`
;
this
.
_domNode
.
appendChild
(
this
.
_arrow
);
const
container
=
document
.
createElement
(
'
div
'
);
container
.
style
.
background
=
color
.
toString
();
container
.
style
.
paddingTop
=
'
2px
'
;
container
.
style
.
boxShadow
=
`0px 5px 8px
${(
theme
.
type
===
DARK
?
color
.
darken
(.
6
)
:
color
.
darken
(.
2
))}
`
;
container
.
style
.
height
=
'
100%
'
;
this
.
_domNode
.
appendChild
(
container
);
this
.
_treeContainer
=
document
.
createElement
(
'
div
'
);
this
.
_treeContainer
.
style
.
background
=
color
.
toString
();
this
.
_treeContainer
.
style
.
paddingTop
=
'
2px
'
;
this
.
_treeContainer
.
style
.
boxShadow
=
`0px 5px 8px
${(
theme
.
type
===
DARK
?
color
.
darken
(.
6
)
:
color
.
darken
(.
2
))}
`
;
this
.
_domNode
.
appendChild
(
this
.
_treeContainer
);
const
treeConifg
=
this
.
_completeTreeConfiguration
({
dataSource
:
undefined
,
renderer
:
undefined
});
this
.
_tree
=
this
.
_instantiationService
.
createInstance
(
HighlightingWorkbenchTree
,
c
ontainer
,
this
.
_treeC
ontainer
,
treeConifg
,
{
useShadows
:
false
},
{
placeholder
:
localize
(
'
placeholder
'
,
"
Find
"
)
}
...
...
@@ -116,11 +116,14 @@ export abstract class BreadcrumbsPicker {
}
layout
(
height
:
number
,
width
:
number
,
arrowSize
:
number
,
arrowOffset
:
number
)
{
this
.
_domNode
.
style
.
width
=
`
${
width
}
px`
;
this
.
_domNode
.
style
.
height
=
`
${
height
}
px`
;
this
.
_domNode
.
style
.
width
=
`
${
width
}
px`
;
this
.
_arrow
.
style
.
borderWidth
=
`
${
arrowSize
}
px`
;
this
.
_arrow
.
style
.
marginLeft
=
`
${
arrowOffset
}
px`
;
this
.
_tree
.
layout
(
height
,
width
);
this
.
_treeContainer
.
style
.
height
=
`
${
height
-
2
*
arrowSize
}
px`
;
this
.
_treeContainer
.
style
.
width
=
`
${
width
}
px`
;
this
.
_tree
.
layout
();
}
protected
abstract
_getInput
(
input
:
BreadcrumbElement
):
any
;
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录