diff --git a/src/events/newEvent.js b/src/events/newEvent.js index 63d1a99bf9e8d3bfba3a320323cc759dae392a4a..4a41aac85250a417438fc9a17a0bc90f3db7b558 100644 --- a/src/events/newEvent.js +++ b/src/events/newEvent.js @@ -231,22 +231,37 @@ export default class newEvent extends EditView { // checks currentPage and selects the fitting page if (this.currentpage === 1) { return layoutWith(m( - 'h1', 'Event description:', iconLeft, iconRight, m('br'), - fieldTitleEn, fieldCatchphraseEn, fieldDescriptionEn, fieldTitleDe, - fieldCatchphraseDe, fieldDescriptionDe, + 'div', { style: { height: '100%', 'overflow-y': 'scroll' } } + , [ + m( + 'h1', 'Event description:', iconLeft, iconRight, m('br'), + fieldTitleEn, fieldCatchphraseEn, fieldDescriptionEn, fieldTitleDe, + fieldCatchphraseDe, fieldDescriptionDe, + ), + ], )); } else if (this.currentpage === 2) { return layoutWith(m( - 'h1', 'Critical Information:', iconLeft, iconRight, m('br'), fieldStartDate, - fieldEndDate, fieldStartRegDate, fieldEndRegDate, fieldLocation, fieldPrice, - fieldNumberOfParticipants, + 'div', { style: { height: '100%', 'overflow-y': 'scroll' } } + , [ + m( + 'h1', 'Critical Information:', iconLeft, iconRight, m('br'), fieldStartDate, + fieldEndDate, fieldStartRegDate, fieldEndRegDate, fieldLocation, fieldPrice, + fieldNumberOfParticipants, + ), + ], )); } else if (this.currentpage === 3) { return layoutWith(m( - 'h1', 'Advertise Information', iconLeft, iconRight, m('br'), fieldAdvStart, - fieldAdvEnd, checkboxWebsite, checkboxAnnounce, checkboxInfoScreen, - buttonBannerUp, buttonInfoUp, buttonPosterUp, buttonThumbUp, m('br'), - buttonUploadAll, m('br'), checkboxAllowMail, radioButtonSelectionMode, + 'div', { style: { height: '100%', 'overflow-y': 'scroll' } } + , [ + m( + 'h1', 'Advertise Information', iconLeft, iconRight, m('br'), fieldAdvStart, + fieldAdvEnd, checkboxWebsite, checkboxAnnounce, checkboxInfoScreen, + buttonBannerUp, buttonInfoUp, buttonPosterUp, buttonThumbUp, m('br'), + buttonUploadAll, m('br'), checkboxAllowMail, radioButtonSelectionMode, + ), + ], )); } return layoutWith(m(''));