Skip to content

Commit

Permalink
Merge pull request #127 from AllenFang/104
Browse files Browse the repository at this point in the history
Overflow on column width
  • Loading branch information
AllenFang committed Nov 9, 2015
2 parents 472361b + a3040b6 commit 9ff999e
Show file tree
Hide file tree
Showing 11 changed files with 422 additions and 120 deletions.
69 changes: 36 additions & 33 deletions css/react-bootstrap-table-all.css
Original file line number Diff line number Diff line change
Expand Up @@ -2,67 +2,70 @@
/*@import "~toastr/build/toastr.min.css";*/
@import "https://cdnjs.cloudflare.com/ajax/libs/toastr.js/latest/css/toastr.min.css";

.react-bs-table .table-header{
.react-bs-container .react-bs-table-container {
border: 1px solid #dddddd;
}

.react-bs-container .table-header{
height: 42px;
border-top-width: 1px;
border-top-style: solid;
border-top-color: rgb(221, 221, 221);
border-bottom-width: 1px;
border-bottom-style: solid;
border-bottom-color: rgb(221, 221, 221);
border-right-width: 1px;
border-right-style: inset;
border-right-color: rgb(221, 221, 221);
}

.react-bs-table .table-header > table{
table-layout: fixed;
border: hidden;
overflow: hidden;
}

.react-bs-container .table-header > table{
/*table-layout: fixed;*/
border-top-style: hidden;
border-right-style: hidden;
border-left-style: hidden;
width: 100%;
}

.react-bs-table .table-header > table > thead > tr{
.react-bs-container .table-header > table > thead > tr{
border-bottom-style: hidden;
}

.react-bs-table .table-header > table > thead > tr > th .table-header-column{
line-height: 25px
.react-bs-container .table-container > table > tbody > tr > td,
.react-bs-container .table-container > table > thead > tr > th,
.react-bs-container .table-header > table > thead > tr > th .table-header-column{
line-height: 25px;
vertical-align: top;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}

.react-bs-table .table-header > table > thead > tr > .sort-column{
.react-bs-container .table-header > table > thead > tr > .sort-column{
cursor: pointer;
}

.react-bs-table .table-container{
overflow-x: auto;
overflow-y: auto;
.react-bs-container .table-container{
overflow: auto;
height: 100%;
border-right-style: solid;
border-right-width: 1px;
border-right-color: rgb(221, 221, 221);
}

.react-bs-table .table-container > table{
margin-top: -18px;
table-layout: fixed;
.react-bs-container .table-container > table{
margin-top: -42px;
/*table-layout: fixed;*/
margin-bottom: 0px;
border-left-style: hidden;
border-right-style: hidden;
border-top-width: 0px;
width: 100%;
}

.react-bs-container .tool-bar{
margin-bottom: 5px
}
/*inline editor default style*/
.react-bs-table .form-control.editor{
width:100%;
.react-bs-container .form-control.editor{
/*width:100%;
top:0;
left:0;
height: 100%;
position: absolute;
left:0;*/
/*height: 100%;
position: absolute;*/
}

.react-bs-table .textarea-save-btn{
.react-bs-container .textarea-save-btn{
position: absolute;
z-index: 100;
right: 0;
Expand Down
69 changes: 36 additions & 33 deletions css/react-bootstrap-table.css
Original file line number Diff line number Diff line change
@@ -1,67 +1,70 @@
/*editor error animate*/
/*@import "~toastr/build/toastr.min.css";*/

.react-bs-table .table-header{
.react-bs-container .react-bs-table-container {
border: 1px solid #dddddd;
}

.react-bs-container .table-header{
height: 42px;
border-top-width: 1px;
border-top-style: solid;
border-top-color: rgb(221, 221, 221);
border-bottom-width: 1px;
border-bottom-style: solid;
border-bottom-color: rgb(221, 221, 221);
border-right-width: 1px;
border-right-style: inset;
border-right-color: rgb(221, 221, 221);
}

.react-bs-table .table-header > table{
table-layout: fixed;
border: hidden;
overflow: hidden;
}

.react-bs-container .table-header > table{
/*table-layout: fixed;*/
border-top-style: hidden;
border-right-style: hidden;
border-left-style: hidden;
width: 100%;
}

.react-bs-table .table-header > table > thead > tr{
.react-bs-container .table-header > table > thead > tr{
border-bottom-style: hidden;
}

.react-bs-table .table-header > table > thead > tr > th .table-header-column{
line-height: 25px
.react-bs-container .table-container > table > tbody > tr > td,
.react-bs-container .table-container > table > thead > tr > th,
.react-bs-container .table-header > table > thead > tr > th .table-header-column{
line-height: 25px;
vertical-align: top;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}

.react-bs-table .table-header > table > thead > tr > .sort-column{
.react-bs-container .table-header > table > thead > tr > .sort-column{
cursor: pointer;
}

.react-bs-table .table-container{
overflow-x: auto;
overflow-y: auto;
.react-bs-container .table-container{
overflow: auto;
height: 100%;
border-right-style: solid;
border-right-width: 1px;
border-right-color: rgb(221, 221, 221);
}

.react-bs-table .table-container > table{
margin-top: -18px;
table-layout: fixed;
.react-bs-container .table-container > table{
margin-top: -42px;
/*table-layout: fixed;*/
margin-bottom: 0px;
border-left-style: hidden;
border-right-style: hidden;
border-top-width: 0px;
width: 100%;
}

.react-bs-container .tool-bar{
margin-bottom: 5px
}
/*inline editor default style*/
.react-bs-table .form-control.editor{
width:100%;
.react-bs-container .form-control.editor{
/*width:100%;
top:0;
left:0;
height: 100%;
position: absolute;
left:0;*/
/*height: 100%;
position: absolute;*/
}

.react-bs-table .textarea-save-btn{
.react-bs-container .textarea-save-btn{
position: absolute;
z-index: 100;
right: 0;
Expand Down
Loading

0 comments on commit 9ff999e

Please sign in to comment.