add Ox.TreeList, fix Ox.List bugs

This commit is contained in:
rlx 2011-02-07 18:57:05 +00:00
commit d7badfe326
3 changed files with 281 additions and 60 deletions

View file

@ -894,47 +894,48 @@ Lists
right: 0;
bottom: 0;
}
.OxTextList .OxBody .OxContent {
.OxTextList .OxContent {
//width: 100%;
}
.OxTextList .OxBody .OxItem {
.OxTextList .OxItem {
height: 16px;
cursor: default;
}
.OxTextList .OxBody .OxItem .OxCell {
.OxTextList .OxItem .OxCell {
float: left;
height: 14px;
padding: 1px 4px 1px 4px;
border-right: 1px solid;
text-overflow: ellipsis;
overflow: hidden;
white-space: nowrap;
}
.OxTextList .OxBody .OxItem .OxCell.OxEdit {
.OxTextList .OxItem .OxCell.OxEdit {
height: 16px;
padding: 0;
}
.OxTextList .OxBody .OxItem .OxCell > img {
.OxTextList .OxItem .OxCell > img {
width: 16px;
height: 16px;
margin: -1px 0 0 -4px;
}
.OxTextList .OxBody .OxItem .OxSpace {
.OxTextList .OxItem .OxSpace {
float: left;
width: 4px;
height: 16px;
}
.OxTextList .OxBody .OxItem .OxLine {
.OxTextList .OxItem .OxLine {
float: left;
width: 1px;
height: 16px;
}
.OxTextList .OxBody .OxItem.OxSelected .OxCell.OxClickable {
.OxTextList .OxItem.OxSelected .OxCell.OxClickable {
cursor: pointer;
}
.OxTextList .OxBody .OxItem.OxSelected .OxCell.OxEditable {
.OxTextList .OxItem.OxSelected .OxCell.OxEditable {
cursor: text;
}
.OxTextList .OxBody .OxItem.OxSelected.OxDrag .OxCell {
.OxTextList .OxItem.OxSelected.OxDrag .OxCell {
cursor: ns-resize;
}
.OxTextList .OxPage {
@ -943,6 +944,9 @@ Lists
.OxTextList.OxDrop .OxItem .OxCell {
color: green;
}
.OxTreeList .OxItem .OxCell {
border-right-width: 0
}
/*
================================================================================

View file

@ -238,13 +238,13 @@ Lists
border-color: rgb(24, 24, 24);
}
.OxThemeModern .OxTextList .OxBody .OxItem .OxCell {
border-right: 1px solid rgb(24, 24, 24);
border-right-color: rgb(24, 24, 24);
}
.OxThemeModern .OxTextList .OxItem.OxSelected .OxCell {
border-right: 1px solid rgb(40, 40, 40);
border-right-color: rgb(40, 40, 40);
}
.OxThemeModern .OxTextList .OxFocus .OxItem.OxSelected .OxCell {
border-right: 1px solid rgb(72, 72, 72);
border-right-color: rgb(72, 72, 72);
color: rgb(255, 255, 255);
}
.OxThemeModern .OxTextList .OxBody .OxItem .OxLine {