2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-09-01 15:05:56 +00:00

Fixed position of zoomed in slider in footer for stack linear chart.

This commit is contained in:
23rd
2023-09-26 16:43:35 +03:00
committed by John Preston
parent 6995fcafb5
commit c19a527872
3 changed files with 16 additions and 4 deletions

View File

@@ -479,8 +479,9 @@ void ChartWidget::Footer::paintEvent(QPaintEvent *e) {
}
void ChartWidget::Footer::setXPercentageLimits(const Limits &xLimits) {
const auto left = xLimits.min * width();
const auto right = xLimits.max * _width;
const auto left = xLimits.min * _widthBetweenSides;
const auto right = xLimits.max * _widthBetweenSides
+ st::statisticsChartFooterSideWidth;
moveSide(true, left);
moveSide(false, right);
fire();