mirror of
https://github.com/davatorium/rofi.git
synced 2025-02-10 15:44:41 -05:00
Small tweak.
This commit is contained in:
parent
eb688ad629
commit
7046656246
1 changed files with 2 additions and 2 deletions
|
@ -170,10 +170,10 @@ void textbox_moveresize ( textbox *tb, int x, int y, int w, int h )
|
|||
|
||||
if ( tb->flags & TB_AUTOWIDTH ) {
|
||||
if ( w > 1 ) {
|
||||
w = MIN ( w, textbox_get_font_width ( tb ) + 2 * SIDE_MARGIN );
|
||||
w = MIN ( w, textbox_get_width ( tb ) );
|
||||
}
|
||||
else{
|
||||
w = textbox_get_font_width ( tb ) + 2 * SIDE_MARGIN;
|
||||
w = textbox_get_width ( tb );
|
||||
}
|
||||
}
|
||||
else {
|
||||
|
|
Loading…
Add table
Reference in a new issue