Skip to content
Snippets Groups Projects
Commit b1921c83 authored by Jack Reed's avatar Jack Reed
Browse files

Fixes a regression where companion window would not scroll

parent 1f67b462
No related branches found
No related tags found
No related merge requests found
......@@ -105,7 +105,7 @@ describe('CompanionWindow', () => {
companionWindow = createWrapper();
expect(companionWindow.find(Rnd).length).toBe(1);
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' });
expect(companionWindow.find(Rnd).length).toBe(1);
......
......@@ -71,7 +71,7 @@ export class CompanionWindow extends Component {
className={[classes.rnd]}
style={{ display: 'flex', position: 'relative' }}
default={{
height: isBottom ? 201 : 'auto',
height: isBottom ? 201 : '100%',
width: isBottom ? 'auto' : 235,
}}
disableDragging
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment