I'm new to GitHub and am not sure if this is right place to ask for some help with this plugin. Anyhow, I'm tring to make the views-container resizable and am having trouble with it. Here's my code.
var p = editor.Panels.getPanel( 'views-container' );
p.set( 'resizable', resizable );
editor.Panels.render();
});
Setting the resizable property alone doesn't work, I had to call Panels.render() in order to get the properties to take effect. After doing this, the scroll bar appears and I can resize. However, by calling render, the StylesManager becomes broken ( displays as blank ).
I also tried backing up, removing and adding the panel back.
var p = editor.Panels.getPanel( 'views-container' );
p.set( 'resizable', resizable );
editor.Panels.removePanel( 'views-container' );
editor.Panels.addPanel( p );
This has the same effect where the container is resizable but the StyleManager is broken. Can someone please help me out.
Hi,
I'm new to GitHub and am not sure if this is right place to ask for some help with this plugin. Anyhow, I'm tring to make the views-container resizable and am having trouble with it. Here's my code.
editor.on('load', function () { var resizable = { maxDim: 400, minDim: 200, tc: 0, cr: 0, cl: 1, bc: 0, keyWidth: 'width' };
});
Setting the resizable property alone doesn't work, I had to call Panels.render() in order to get the properties to take effect. After doing this, the scroll bar appears and I can resize. However, by calling render, the StylesManager becomes broken ( displays as blank ).
I also tried backing up, removing and adding the panel back.
var p = editor.Panels.getPanel( 'views-container' ); p.set( 'resizable', resizable ); editor.Panels.removePanel( 'views-container' ); editor.Panels.addPanel( p );
This has the same effect where the container is resizable but the StyleManager is broken. Can someone please help me out.