sebastiencs / company-box

A company front-end with icons
563 stars 64 forks source link

Use line-pixel-height in box height calculations #181

Open DivineDominion opened 2 years ago

DivineDominion commented 2 years ago

Meant as a demonstration how the actual line-height can be used in height computations.

Fixes #180

I actually think that if this is acceptable, we should replace other uses of (frame-char-height) with (line-pixel-height) to get consistent results during calculations.

Changing this will get line-pixel-height for the current window; not being able to specify which frame and window to ask could be a weakness, but I didn't encounter any issues so far.