Refresh the SQL editor view on resize to ensure the contents are re-rendered for the new viewport. Fixes #2078

REL-1_X
Murtuza Zabuawala 2017-06-12 13:25:52 +01:00 committed by Dave Page
parent c435d48885
commit 3743c6e86e
1 changed files with 10 additions and 0 deletions

View File

@ -176,6 +176,16 @@ define([
scrollbarStyle: 'simple'
});
// Refresh Code mirror on SQL panel resize to
// display its value properly
sql_panel_obj.on(wcDocker.EVENT.RESIZE_ENDED, function() {
setTimeout(function() {
if(self && self.query_tool_obj) {
self.query_tool_obj.refresh();
}
}, 200);
});
// Create panels for 'Data Output', 'Explain', 'Messages' and 'History'
var data_output = new pgAdmin.Browser.Panel({
name: 'data_output',