diff --git a/docs/en_US/release_notes_6_0.rst b/docs/en_US/release_notes_6_0.rst index 6c45555b2..40d46ffa0 100644 --- a/docs/en_US/release_notes_6_0.rst +++ b/docs/en_US/release_notes_6_0.rst @@ -23,4 +23,5 @@ Bug fixes | `Issue #2546 `_ - Added support to create the Partitioned table using COLLATE and opclass. | `Issue #6712 `_ - Fixed an issue where collapse and expand arrows mismatch in case of nested IF. +| `Issue #6713 `_ - Fixed an issue where the last message is not visible in the Debugger. | `Issue #6724 `_ - Fixed an issue where the drop cascade button enables for Databases. diff --git a/web/pgadmin/tools/debugger/static/js/direct.js b/web/pgadmin/tools/debugger/static/js/direct.js index 3e92dfe9c..2963657a8 100644 --- a/web/pgadmin/tools/debugger/static/js/direct.js +++ b/web/pgadmin/tools/debugger/static/js/direct.js @@ -1684,6 +1684,24 @@ define([ docker.addPanel('stack_pane', wcDocker.DOCK.STACKED, parameters_panel); }, + /** + * This function is responsible for adjusting the message height + * so that the message does not cut down. + * @function setMessagePanelHeight + */ + setMessagePanelHeight: function() { + var self = this, + dockerPane = self.docker.$container[0]; + if(dockerPane.children.length > 2) { + var bottomPane = dockerPane.children[2], + message_height = $(bottomPane).height() - 75; + $($(dockerPane).find('#messages')[0]).css({ + 'height': message_height + 'px', + 'padding-bottom': 5 + 'px' + }); + } + }, + // Create the debugger layout with splitter and display the appropriate data received from server. intializePanels: function() { var self = this; @@ -1757,8 +1775,10 @@ define([ // restore the layout if present else fallback to buildDefaultLayout pgBrowser.restore_layout(self.docker, self.layout, this.buildDefaultLayout.bind(this)); + self.setMessagePanelHeight(); self.docker.on(wcDocker.EVENT.LAYOUT_CHANGED, function() { + self.setMessagePanelHeight(); pgBrowser.save_current_layout('Debugger/Layout', self.docker); });