Skip to content

Commit

Permalink
Fix minimum height not being applied (#1952)
Browse files Browse the repository at this point in the history
  • Loading branch information
Suyooo authored Jun 1, 2024
1 parent 9358f56 commit c8b127d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/conky.cc
Original file line number Diff line number Diff line change
Expand Up @@ -863,9 +863,9 @@ void update_text_area() {
for_each_line(text_buffer, text_size_updater);
text_size += conky::vec2i::UnitX();

text_size.max(conky::vec2i(text_size.x(), minimum_height.get(*state)));
text_size = text_size.max(conky::vec2i(text_size.x(), minimum_height.get(*state)));
int mw = maximum_width.get(*state);
if (mw > 0) text_size.min(conky::vec2i(mw, text_size.y()));
if (mw > 0) text_size = text_size.min(conky::vec2i(mw, text_size.y()));
}

alignment align = text_alignment.get(*state);
Expand Down

0 comments on commit c8b127d

Please sign in to comment.