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:
@@ -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();
|
||||
|
Reference in New Issue
Block a user