Skip to content

Commit

Permalink
Merge pull request #35 from ckeditor/t/34
Browse files Browse the repository at this point in the history
Fix: The inspector should not scale beyond the height of the visible viewport. Closes #34.
  • Loading branch information
pomek committed Mar 20, 2019
2 parents 16fa0e4 + f546305 commit 86c287b
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/components/ui.js
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,7 @@ export default class InspectorUI extends Component {
enableResizing={{ top: !this.state.isCollapsed }}
disableDragging={true}
minHeight={INSPECTOR_MIN_HEIGHT}
maxHeight="100%"
style={INSPECTOR_STYLES}
className={[
'ck-inspector',
Expand Down
6 changes: 6 additions & 0 deletions tests/inspector/components/ui.js
Original file line number Diff line number Diff line change
Expand Up @@ -188,6 +188,12 @@ describe( '<InspectorUI />', () => {
expect( rnd.props().minHeight ).to.equal( '100' );
} );

it( 'has #maxHeight', () => {
const rnd = wrapper.find( Rnd ).first();

expect( rnd.props().maxHeight ).to.equal( '100%' );
} );

it( 'has #style', () => {
const rnd = wrapper.find( Rnd ).first();

Expand Down

0 comments on commit 86c287b

Please sign in to comment.