Skip to content

Commit

Permalink
Use tab's split sizes rather than history item's sizes when reloading…
Browse files Browse the repository at this point in the history
… page.
  • Loading branch information
adrianbj committed Jan 16, 2025
1 parent 641bfdf commit f7a44ae
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion TracyDebugger.module.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ public static function getModuleInfo() {
'summary' => __('Tracy debugger from Nette with many PW specific custom tools.', __FILE__),
'author' => 'Adrian Jones',
'href' => 'https://processwire.com/talk/forum/58-tracy-debugger/',
'version' => '4.26.54',
'version' => '4.26.55',
'autoload' => 100000, // in PW 3.0.114+ higher numbers are loaded first - we want Tracy first
'singular' => true,
'requires' => 'ProcessWire>=2.7.2, PHP>=5.4.4',
Expand Down
2 changes: 1 addition & 1 deletion panels/ConsolePanel.php
Original file line number Diff line number Diff line change
Expand Up @@ -867,7 +867,7 @@ public function getPanel() {
historyEntry.selections = historyEntry.selections || {};
historyEntry.scrollTop = historyEntry.scrollTop || 0;
historyEntry.scrollLeft = historyEntry.scrollLeft || 0;
historyEntry.splitSizes = historyEntry.splitSizes || consoleTab.splitSizes || [40, 60];
historyEntry.splitSizes = (historyItem === (historyCount - 1)) ? (consoleTab.splitSizes || historyEntry.splitSizes || [40, 60]) : (historyEntry.splitSizes || [40, 60]);
this.setEditorState(historyEntry);
}
Expand Down

0 comments on commit f7a44ae

Please sign in to comment.