Skip to content
Snippets Groups Projects
Commit 53d96dc6 authored by Hermann's avatar Hermann
Browse files

fix table scrolling after update of polythene and mithril-infinite

parent 5885a5fd
No related branches found
No related tags found
No related merge requests found
......@@ -60,12 +60,14 @@ class MembersTable {
group: this.group_id,
}).then(() => {
this.ctrl.refresh();
m.redraw();
});
},
onCancel: () => { this.addmode = false; m.redraw(); },
selectedText: user => `${user.firstname} ${user.lastname}`,
}) : '',
m(TableView, {
tableHeight: '420px',
controller: this.ctrl,
keys: ['user.lastname', 'user.firstname', 'user.email'],
tileContent: data => this.itemRow(data),
......
......@@ -146,7 +146,7 @@ export default class SelectList {
defaultValue: '',
})),
(this.showList && !this.selected) ? m(List, {
className: 'scrollTable',
style: { height: '400px' },
tiles: m(infinite, controller.infiniteScrollParams(this.item())),
}) : null,
]);
......
......@@ -10,7 +10,8 @@ const tableStyles = [
'.tabletool': {
display: 'grid',
height: '100%',
'grid-template-rows': '48px calc(100% - 48px)',
'grid-template-rows': '48px calc(100% - 78px)',
'background-color': 'white',
},
'.toolbar': {
'grid-row': 1,
......@@ -18,7 +19,6 @@ const tableStyles = [
},
'.scrollTable': {
'grid-row': 2,
'background-color': 'white',
},
'.tableTile': {
padding: '10px',
......@@ -84,6 +84,7 @@ export default class TableView {
controller,
titles,
onAdd = () => {},
tableHeight = false,
},
}) {
const updateList = debounce(() => {
......@@ -115,6 +116,7 @@ export default class TableView {
}),
m(List, {
className: 'scrollTable',
style: tableHeight ? { height: tableHeight } : {},
tiles: [
m(ListTile, {
className: 'tableTile',
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment