Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import angular from 'angular';
import { indexOf } from 'lodash';
import baseController from '../../../shared/baseController';

import {PairReadInfo} from '../../utils/events';
Expand Down Expand Up @@ -160,7 +161,13 @@ export default class ngbGoldenLayoutController extends baseController {
if (isBrowser) {
const resizeObserver = new ResizeObserver(entries => {
for (const entry of entries) {
this.projectContext.isBrowserNarrow = entry.target.clientWidth < MIN_BROWSER_WIDTH;
if (entry.target.clientWidth < MIN_BROWSER_WIDTH) {
const elementStyle = stack.element[0].style;
const contentItems = stack.contentItems[0];
const elementWidth = +elementStyle.width.replace('px', '');
const width = MIN_BROWSER_WIDTH + contentItems.container.width - elementWidth;
contentItems.container.setSize(width, elementStyle.height);
}
}
});
resizeObserver.observe(stack.element[0]);
Expand Down
9 changes: 0 additions & 9 deletions client/client/app/shared/projectContext/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,6 @@ export default class projectContext {

_lastLocalTracks = [];
_localDataset = null;
_isBrowserNarrow = false;

get firstPageVariations() {
return this._firstPageVariations;
Expand Down Expand Up @@ -308,14 +307,6 @@ export default class projectContext {
this._bookmarksFilterIsDefault = value;
}

get isBrowserNarrow() {
return this._isBrowserNarrow;
}

set isBrowserNarrow(value) {
this._isBrowserNarrow = value;
}

get vcfFilter() {
return this._vcfFilter;
}
Expand Down