force scrolling when width of the content overflows

This commit is contained in:
zadam
2019-12-28 19:18:44 +01:00
parent bb8b563ece
commit a9b8e65c9b
2 changed files with 5 additions and 2 deletions

View File

@@ -11,8 +11,6 @@ import protectedSessionService from "./protected_session.js";
import optionsService from "./options.js";
import linkService from "./link.js";
import Sidebar from "./sidebar.js";
import libraryLoader from "./library_loader.js";
import noteAutocompleteService from "./note_autocomplete.js";
const $tabContentsContainer = $("#note-tab-container");
@@ -291,6 +289,10 @@ class TabContext {
}
getComponent() {
if (!this.components[this.type]) {
throw new Error("Could not find component for type: " + this.type);
}
return this.components[this.type];
}