Fix sparkline display when toggling the memory panel