revert scrollable table because of bad browser implementation and replace by non-fixed header scrolling
This commit is contained in:
parent
38366b0285
commit
bf226f87dc
|
@ -409,7 +409,7 @@ function view_user_shifts() {
|
||||||
$block[$rid][$i]++;
|
$block[$rid][$i]++;
|
||||||
}
|
}
|
||||||
|
|
||||||
$shifts_table = "<table id=\"shifts\"><thead><tr><th>-</th>";
|
$shifts_table = "<table id=\"shifts\" class=\"scrollable\"><thead><tr><th>-</th>";
|
||||||
foreach($myrooms as $key => $room) {
|
foreach($myrooms as $key => $room) {
|
||||||
$rid = $room["id"];
|
$rid = $room["id"];
|
||||||
if(array_sum($block[$rid]) == 0) {
|
if(array_sum($block[$rid]) == 0) {
|
||||||
|
@ -540,7 +540,7 @@ function view_user_shifts() {
|
||||||
}
|
}
|
||||||
$shifts_table .= "</tr>\n";
|
$shifts_table .= "</tr>\n";
|
||||||
}
|
}
|
||||||
$shifts_table .= '</tbody></table><script type="text/javascript">scrolltable(document.getElementById("shifts"))</script>';
|
$shifts_table .= '</tbody></table>';
|
||||||
// qqq
|
// qqq
|
||||||
} else {
|
} else {
|
||||||
$shifts_table = array();
|
$shifts_table = array();
|
||||||
|
|
|
@ -135,24 +135,7 @@ table {
|
||||||
|
|
||||||
table.scrollable {
|
table.scrollable {
|
||||||
max-width: 100%;
|
max-width: 100%;
|
||||||
overflow-x: scroll;
|
overflow: auto;
|
||||||
overflow-y: hidden;
|
|
||||||
}
|
|
||||||
|
|
||||||
table.scrollable thead tr {
|
|
||||||
display: block;
|
|
||||||
position: relative;
|
|
||||||
}
|
|
||||||
|
|
||||||
table.scrollable tbody {
|
|
||||||
display: block;
|
|
||||||
position: relative;
|
|
||||||
overflow-x: hidden;
|
|
||||||
overflow-y: auto;
|
|
||||||
}
|
|
||||||
|
|
||||||
table.scrollable tbody * {
|
|
||||||
width: auto;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
fieldset hr {
|
fieldset hr {
|
||||||
|
|
Loading…
Reference in New Issue