Skip to content

Commit 9b50d0e

Browse files
authored
Merge pull request #1338 from SergioChan/fix-1335-resize-handle-statusbar
Fix resize handle not showing when status counters are disabled
2 parents 6ce04b7 + 75894da commit 9b50d0e

2 files changed

Lines changed: 19 additions & 0 deletions

File tree

src/plugins/resize-handler/resize-handler.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ export class resizeHandler extends Plugin {
3737
(allowResizeX || allowResizeY)
3838
) {
3939
editor.statusbar.setMod('resize-handle', true);
40+
editor.statusbar.show();
4041

4142
editor.e
4243
.on('toggleFullSize.resizeHandler', () => {

src/plugins/size/size.test.js

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -288,6 +288,24 @@
288288

289289
describe('Disable auto-height', function () {
290290
describe('Resize handle', function () {
291+
it('Should show resize handle when counters are hidden', function () {
292+
const editor = getJodit({
293+
height: 300,
294+
allowResizeX: true,
295+
allowResizeY: true,
296+
showCharsCounter: false,
297+
showWordsCounter: false,
298+
showXPathInStatusbar: false
299+
});
300+
301+
const handle = editor.container.querySelector(
302+
'.jodit-editor__resize'
303+
);
304+
305+
expect(handle).is.not.null;
306+
expect(editor.statusbar.container.offsetHeight).is.above(0);
307+
});
308+
291309
it('Should resize editor', function () {
292310
const box = getBox();
293311
box.style.width = 'auto';

0 commit comments

Comments
 (0)