[fix](trx-frontend-http): preserve scale arrows on axis redraw
Co-authored-by: OpenAI Codex <codex@openai.com> Signed-off-by: Stan Grams <sjg@haxx.space>
This commit is contained in:
@@ -8934,9 +8934,9 @@ function updateSpectrumFreqAxis(range) {
|
|||||||
spectrumAxisKey = axisKey;
|
spectrumAxisKey = axisKey;
|
||||||
|
|
||||||
const firstHz = Math.ceil(range.visLoHz / stepHz) * stepHz;
|
const firstHz = Math.ceil(range.visLoHz / stepHz) * stepHz;
|
||||||
spectrumFreqAxis.innerHTML = "";
|
|
||||||
const leftShiftBtn = document.getElementById("spectrum-center-left-btn");
|
const leftShiftBtn = document.getElementById("spectrum-center-left-btn");
|
||||||
const rightShiftBtn = document.getElementById("spectrum-center-right-btn");
|
const rightShiftBtn = document.getElementById("spectrum-center-right-btn");
|
||||||
|
spectrumFreqAxis.innerHTML = "";
|
||||||
if (leftShiftBtn) spectrumFreqAxis.appendChild(leftShiftBtn);
|
if (leftShiftBtn) spectrumFreqAxis.appendChild(leftShiftBtn);
|
||||||
if (rightShiftBtn) spectrumFreqAxis.appendChild(rightShiftBtn);
|
if (rightShiftBtn) spectrumFreqAxis.appendChild(rightShiftBtn);
|
||||||
const axisWidth = spectrumFreqAxis.clientWidth || 0;
|
const axisWidth = spectrumFreqAxis.clientWidth || 0;
|
||||||
|
|||||||
Reference in New Issue
Block a user