Skip to content
This repository was archived by the owner on Jun 26, 2020. It is now read-only.

Commit 705dbe5

Browse files
authored
Merge pull request #18 from ckeditor/t/11
Fix: The toolbar should not collapse when the window is narrow. Closes #11.
2 parents 683bc63 + df2721c commit 705dbe5

File tree

2 files changed

+11
-1
lines changed

2 files changed

+11
-1
lines changed

src/inlineeditoruiview.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,12 @@ export default class InlineEditorUIView extends EditorUIView {
5959

6060
Template.extend( this.toolbar.template, {
6161
attributes: {
62-
class: 'ck-editor-toolbar'
62+
class: [
63+
'ck-editor-toolbar',
64+
65+
// https://github.com/ckeditor/ckeditor5-editor-inline/issues/11
66+
'ck-toolbar_floating'
67+
]
6368
}
6469
} );
6570

tests/inlineeditoruiview.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,11 @@ describe( 'InlineEditorUIView', () => {
2626
it( 'is given a locale object', () => {
2727
expect( view.toolbar.locale ).to.equal( locale );
2828
} );
29+
30+
it( 'is given the right CSS classes', () => {
31+
expect( view.toolbar.element.classList.contains( 'ck-editor-toolbar' ) ).to.be.true;
32+
expect( view.toolbar.element.classList.contains( 'ck-toolbar_floating' ) ).to.be.true;
33+
} );
2934
} );
3035

3136
describe( '#panel', () => {

0 commit comments

Comments
 (0)