Commit fa44ac13 authored by Jonas Dreßler's avatar Jonas Dreßler
Browse files

messageList: Don't use overlay scrollbars

The StScrollView now gives our view more space when it's hiding the
scroll bar, so we don't need to work around that ourself anymore.
Disable the overlay scrollbar and adjust the CSS a bit to make it look
as before.
parent 68b4eb6d
Pipeline #464888 waiting for manual action with stages
......@@ -6,9 +6,19 @@
width: 29em;
border: solid $borders_color;
// padding and margins to account for scrollbar
&:ltr {margin-left: 0; margin-right: $base_margin; padding-right: $base_padding; border-right-width: 1px; }
&:rtl {margin-right: 0; margin-left: $base_margin; padding-left: $base_padding; border-left-width: 1px; }
&:ltr {
StScrollBar { margin-right: 0; }
margin-right: $base_margin;
padding-right: $base_padding;
border-right-width: 1px;
}
&:rtl {
StScrollBar { margin-left: 0; }
margin-left: $base_margin;
padding-left: $base_padding;
border-left-width: 1px;
}
.message-list-placeholder {
@extend %title_2;
......@@ -27,10 +37,6 @@
spacing: $base_padding;
margin: 0;
padding-bottom: $base_padding;
// to account for scrollbar
&:ltr {margin-right: $base_margin * 3; }
&:rtl {margin-left: $base_margin * 3;}
}
.message-list-section,
......
......@@ -936,7 +936,6 @@ class CalendarMessageList extends St.Widget {
this._scrollView = new St.ScrollView({
style_class: 'vfade',
overlay_scrollbars: true,
x_expand: true, y_expand: true,
});
this._scrollView.set_policy(St.PolicyType.NEVER, St.PolicyType.AUTOMATIC);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment