Line label geometry needs updated whenever a component width changes

This commit is contained in:
Dan Paulat 2024-08-21 22:20:22 -05:00
parent eda7751eb9
commit 88b8a8001f

View file

@ -45,6 +45,7 @@ void LineLabel::set_border_width(std::size_t width)
{ {
p->borderWidth_ = width; p->borderWidth_ = width;
p->pixmapDirty_ = true; p->pixmapDirty_ = true;
updateGeometry();
update(); update();
} }
@ -52,6 +53,7 @@ void LineLabel::set_highlight_width(std::size_t width)
{ {
p->highlightWidth_ = width; p->highlightWidth_ = width;
p->pixmapDirty_ = true; p->pixmapDirty_ = true;
updateGeometry();
update(); update();
} }
@ -59,6 +61,7 @@ void LineLabel::set_line_width(std::size_t width)
{ {
p->lineWidth_ = width; p->lineWidth_ = width;
p->pixmapDirty_ = true; p->pixmapDirty_ = true;
updateGeometry();
update(); update();
} }