mirror of
https://github.com/kotatogram/kotatogram-desktop
synced 2025-09-04 08:35:21 +00:00
Slightly improved display management of delayed widgets in chart widget.
This commit is contained in:
@@ -917,7 +917,6 @@ int ChartWidget::resizeGetHeight(int newWidth) {
|
|||||||
newWidth,
|
newWidth,
|
||||||
st::statisticsChartFooterHeight);
|
st::statisticsChartFooterHeight);
|
||||||
if (_filterButtons) {
|
if (_filterButtons) {
|
||||||
_filterButtons->show();
|
|
||||||
_filterButtons->moveToLeft(0, resultHeight - filtersHeight);
|
_filterButtons->moveToLeft(0, resultHeight - filtersHeight);
|
||||||
}
|
}
|
||||||
_chartArea->setGeometry(
|
_chartArea->setGeometry(
|
||||||
@@ -1270,7 +1269,6 @@ void ChartWidget::setupFilterButtons() {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
_filterButtons = base::make_unique_q<ChartLinesFilterWidget>(this);
|
_filterButtons = base::make_unique_q<ChartLinesFilterWidget>(this);
|
||||||
_filterButtons->show();
|
|
||||||
|
|
||||||
_filterButtons->buttonEnabledChanges(
|
_filterButtons->buttonEnabledChanges(
|
||||||
) | rpl::start_with_next([=](const ChartLinesFilterWidget::Entry &e) {
|
) | rpl::start_with_next([=](const ChartLinesFilterWidget::Entry &e) {
|
||||||
@@ -1303,8 +1301,11 @@ void ChartWidget::setChartData(Data::StatisticalChart chartData) {
|
|||||||
updateBottomDates();
|
updateBottomDates();
|
||||||
_animationController.finish();
|
_animationController.finish();
|
||||||
addHorizontalLine(_animationController.finalHeightLimits(), false);
|
addHorizontalLine(_animationController.finalHeightLimits(), false);
|
||||||
|
|
||||||
|
RpWidget::showChildren();
|
||||||
_chartArea->update();
|
_chartArea->update();
|
||||||
_footer->update();
|
_footer->update();
|
||||||
|
RpWidget::resizeToWidth(width());
|
||||||
}
|
}
|
||||||
|
|
||||||
void ChartWidget::setTitle(rpl::producer<QString> &&title) {
|
void ChartWidget::setTitle(rpl::producer<QString> &&title) {
|
||||||
|
Reference in New Issue
Block a user