mirror of
https://github.com/gorhill/uMatrix.git
synced 2024-06-29 03:21:09 +12:00
Merge pull request #441 from KenMacD/scroll
Allow horizontal scrolling.
This commit is contained in:
commit
88c9440359
|
@ -7,7 +7,7 @@ body {
|
||||||
min-height: 16em;
|
min-height: 16em;
|
||||||
min-width: 32em;
|
min-width: 32em;
|
||||||
opacity: 1;
|
opacity: 1;
|
||||||
overflow-x: hidden;
|
overflow-x: auto;
|
||||||
overflow-y: auto;
|
overflow-y: auto;
|
||||||
padding: 0;
|
padding: 0;
|
||||||
}
|
}
|
||||||
|
@ -24,7 +24,6 @@ a {
|
||||||
left:0;
|
left:0;
|
||||||
padding: 0;
|
padding: 0;
|
||||||
position: fixed;
|
position: fixed;
|
||||||
right: 0;
|
|
||||||
top: 0;
|
top: 0;
|
||||||
z-index: 10;
|
z-index: 10;
|
||||||
}
|
}
|
||||||
|
|
|
@ -960,6 +960,11 @@ var makeMenu = function() {
|
||||||
document.querySelector('.paneHead').clientHeight + 'px'
|
document.querySelector('.paneHead').clientHeight + 'px'
|
||||||
);
|
);
|
||||||
|
|
||||||
|
// Make the header scroll with the window.
|
||||||
|
window.onscroll = function () {
|
||||||
|
document.querySelector('.paneHead').style.left = "-" + window.scrollX + "px";
|
||||||
|
};
|
||||||
|
|
||||||
startMatrixUpdate();
|
startMatrixUpdate();
|
||||||
makeMatrixGroup0(groupStats[0]);
|
makeMatrixGroup0(groupStats[0]);
|
||||||
makeMatrixGroup1(groupStats[1]);
|
makeMatrixGroup1(groupStats[1]);
|
||||||
|
|
Loading…
Reference in a new issue