[DE] Navigation refactoring: always show scrollbar, scroll to current header.

This commit is contained in:
Julia Radzhabova 2018-03-16 13:09:00 +03:00
parent e51c72052e
commit 7ec3d4170f
3 changed files with 6 additions and 3 deletions

View file

@ -37,7 +37,7 @@
.tree-item {
width: 100%;
min-height: 28px;
padding: 0px 0 0 24px;
padding: 0px 6px 0 24px;
}
.name {

View file

@ -153,7 +153,7 @@ define([
},
onChangeOutlinePosition: function(index) {
this.panelNavigation.viewNavigationList.selectByIndex(index);
this.panelNavigation.viewNavigationList.scrollToRecord(this.panelNavigation.viewNavigationList.selectByIndex(index));
},
onItemContextMenu: function(picker, item, record, e){

View file

@ -17,9 +17,12 @@
#navigation-list {
height: 100%;
overflow: hidden;
padding: 8px 0;
font-size: 12px;
.treeview {
padding: 8px 0;
}
.name.not-header {
font-style: italic;
}