mirror of
https://github.com/esphome/esphome.git
synced 2025-11-20 08:46:01 +00:00
[graph] Fix legend border (#12000)
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user