jp112sdl / AskSinAnalyzer

Analyzer for radio telegrams in a HomeMatic environment
Other
73 stars 12 forks source link

fix lines on simple view #14

Closed stan23 closed 5 years ago

stan23 commented 5 years ago

On the simple view the lines are not positioned correctly and overwritten by the text: display_broken_lines

Fixed: display_lines_repaired

The detailed view is still working.

Description: The formula is calculating the y position of the next line (works for both simple and detailed view) and then subtracts one line height.

Moving the calculation of the y position to a dedicated variable just makes the code easier to read. The compiler would have calculated it only once anyway.

jp112sdl commented 5 years ago

THX