1
0
mirror of https://github.com/esphome/esphome.git synced 2025-11-20 00:35:44 +00:00

[graph] Fix legend border (#12000)

This commit is contained in:
Jonathan Swoboda
2025-11-19 19:09:22 -05:00
committed by GitHub
parent bbd6d019e5
commit 4398fd84d2

View File

@@ -337,7 +337,7 @@ void Graph::draw_legend(display::Display *buff, uint16_t x_offset, uint16_t y_of
return;
/// Plot border
if (this->border_) {
if (legend_->border_) {
int w = legend_->width_;
int h = legend_->height_;
buff->horizontal_line(x_offset, y_offset, w, color);