mirror of
https://github.com/davatorium/rofi.git
synced 2025-02-03 15:34:54 -05:00
[Textbox] Round estimated size up.
This commit is contained in:
parent
c6a405e840
commit
8be08007f8
1 changed files with 1 additions and 1 deletions
|
@ -911,7 +911,7 @@ double textbox_get_estimated_ch ( void )
|
|||
int textbox_get_estimated_height ( const textbox *tb, int eh )
|
||||
{
|
||||
int height = pango_font_metrics_get_ascent ( tb->metrics ) + pango_font_metrics_get_descent ( tb->metrics );
|
||||
return ( eh * height ) / PANGO_SCALE + widget_padding_get_padding_height ( WIDGET ( tb ) );
|
||||
return ceil(( eh * height ) / (double)PANGO_SCALE) + widget_padding_get_padding_height ( WIDGET ( tb ) );
|
||||
}
|
||||
int textbox_get_desired_width ( widget *wid )
|
||||
{
|
||||
|
|
Loading…
Add table
Reference in a new issue