Skip to content
Snippets Groups Projects
Unverified Commit 4606679c authored by Jessie Keck's avatar Jessie Keck Committed by GitHub
Browse files

Merge pull request #2921 from ProjectMirador/fix-scroll-regression

Fixes a regression where companion window would not scroll
parents 1f67b462 b1921c83
Branches
No related tags found
No related merge requests found
...@@ -105,7 +105,7 @@ describe('CompanionWindow', () => { ...@@ -105,7 +105,7 @@ describe('CompanionWindow', () => {
companionWindow = createWrapper(); companionWindow = createWrapper();
expect(companionWindow.find(Rnd).length).toBe(1); expect(companionWindow.find(Rnd).length).toBe(1);
expect(companionWindow.find(Rnd).prop('enableResizing').left).toBe(true); expect(companionWindow.find(Rnd).prop('enableResizing').left).toBe(true);
expect(companionWindow.find(Rnd).prop('default')).toEqual({ height: 'auto', width: 235 }); expect(companionWindow.find(Rnd).prop('default')).toEqual({ height: '100%', width: 235 });
companionWindow = createWrapper({ position: 'bottom' }); companionWindow = createWrapper({ position: 'bottom' });
expect(companionWindow.find(Rnd).length).toBe(1); expect(companionWindow.find(Rnd).length).toBe(1);
......
...@@ -71,7 +71,7 @@ export class CompanionWindow extends Component { ...@@ -71,7 +71,7 @@ export class CompanionWindow extends Component {
className={[classes.rnd]} className={[classes.rnd]}
style={{ display: 'flex', position: 'relative' }} style={{ display: 'flex', position: 'relative' }}
default={{ default={{
height: isBottom ? 201 : 'auto', height: isBottom ? 201 : '100%',
width: isBottom ? 'auto' : 235, width: isBottom ? 'auto' : 235,
}} }}
disableDragging disableDragging
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment