Merge pull request #1724 from asaadmahmoodspin/sidebarFix
Fixing IE scrolling issue and also fixing horizontal scrollbar
Этот коммит содержится в:
@@ -233,7 +233,8 @@ export default class PostsView extends React.Component {
|
|||||||
window.requestAnimationFrame(() => {
|
window.requestAnimationFrame(() => {
|
||||||
// If separator exists scroll to it. Otherwise scroll to bottom.
|
// If separator exists scroll to it. Otherwise scroll to bottom.
|
||||||
if (this.refs.newMessageSeparator) {
|
if (this.refs.newMessageSeparator) {
|
||||||
this.refs.newMessageSeparator.scrollIntoView();
|
var objDiv = this.refs.postlist;
|
||||||
|
objDiv.scrollTop = this.refs.newMessageSeparator.offsetTop; //scrolls node to top of Div
|
||||||
} else {
|
} else {
|
||||||
this.refs.postlist.scrollTop = this.refs.postlist.scrollHeight;
|
this.refs.postlist.scrollTop = this.refs.postlist.scrollHeight;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -8,7 +8,7 @@ body {
|
|||||||
font-family: 'Open Sans', sans-serif;
|
font-family: 'Open Sans', sans-serif;
|
||||||
-webkit-font-smoothing: antialiased;
|
-webkit-font-smoothing: antialiased;
|
||||||
background: $body-bg;
|
background: $body-bg;
|
||||||
position: absolute;
|
position: relative;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
height: 100%;
|
height: 100%;
|
||||||
&.white {
|
&.white {
|
||||||
@@ -36,11 +36,13 @@ body {
|
|||||||
.container-fluid {
|
.container-fluid {
|
||||||
@include legacy-pie-clearfix;
|
@include legacy-pie-clearfix;
|
||||||
height: 100%;
|
height: 100%;
|
||||||
|
position: relative;
|
||||||
}
|
}
|
||||||
|
|
||||||
.channel-view {
|
.channel-view {
|
||||||
@include clearfix;
|
@include clearfix;
|
||||||
height: 100%;
|
height: 100%;
|
||||||
|
position: relative;
|
||||||
}
|
}
|
||||||
|
|
||||||
img {
|
img {
|
||||||
|
|||||||
@@ -54,9 +54,7 @@
|
|||||||
@media screen and (max-width: 960px) {
|
@media screen and (max-width: 960px) {
|
||||||
|
|
||||||
.sidebar--right {
|
.sidebar--right {
|
||||||
width: 400px;
|
|
||||||
z-index: 5;
|
z-index: 5;
|
||||||
right: 0;
|
|
||||||
@include translateX(100%);
|
@include translateX(100%);
|
||||||
|
|
||||||
&.move--left {
|
&.move--left {
|
||||||
|
|||||||
@@ -1,17 +1,17 @@
|
|||||||
@charset "UTF-8";
|
@charset "UTF-8";
|
||||||
|
|
||||||
.sidebar--right {
|
.sidebar--right {
|
||||||
position: absolute;
|
position: fixed;
|
||||||
width: 400px;
|
width: 400px;
|
||||||
height: 100%;
|
height: 100%;
|
||||||
right: 0px;
|
right: 0px;
|
||||||
padding: 0;
|
padding: 0;
|
||||||
background: #fff;
|
background: #fff;
|
||||||
@include single-transition(transform, 0.5s, ease);
|
@include single-transition(transform, 0.5s, ease);
|
||||||
right: -320px;
|
@include translateX(400px);
|
||||||
|
|
||||||
&.move--left {
|
&.move--left {
|
||||||
right: 0;
|
@include translateX(0);
|
||||||
}
|
}
|
||||||
|
|
||||||
.post-body {
|
.post-body {
|
||||||
|
|||||||
Ссылка в новой задаче
Block a user