orontee / taranis

Local weather data on your PocketBook e-book reader.
GNU General Public License v3.0
24 stars 0 forks source link

Timestamp overflow screen width #80

Closed orontee closed 12 months ago

orontee commented 12 months ago

Context

date_overflow

I guess the alert button may also hide the content of the current condition widget if visible.

Analysis

The Pocketbook Verse has a 6 inch screen with a rather low resolution, 1024x768 pixels (212 PPI).

Proposal

Compute the width of the timestamp string and change of date format when the string would overflow screen width.

:warning: This will not fix the alert button hiding content of the current condition widget.

Side notes

To avoid widget overflow, the widget class should define the four usual padding properties, deduce a "content box" rectangle from the bounding box rectangle and those padding properties, and clip to that content box rectangle during paint operations.