The PR aims to close #37 by checking which is larger, the current vertical size or the calculated one, and keep the largest size.
Also encapsulated the line width calculation into the get_longest_line_width method, among other minor refactoring, like get_control_font to encapsulate the font accessing procedures.
The PR aims to close #37 by checking which is larger, the current vertical size or the calculated one, and keep the largest size.
Also encapsulated the line width calculation into the
get_longest_line_width
method, among other minor refactoring, likeget_control_font
to encapsulate the font accessing procedures.