File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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' , ( ) => {
Original file line number Diff line number Diff line change 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' ;
You can’t perform that action at this time.
0 commit comments