mirror of
https://github.com/0intro/wmii
synced 2024-11-22 05:42:05 +03:00
[menu] Make the input width wide enough to hold its contents.
This commit is contained in:
parent
f56c6edc86
commit
60ea1e5a30
@ -127,7 +127,8 @@ menu_draw(void) {
|
||||
r2 = r;
|
||||
|
||||
pad = (font->height & ~1);
|
||||
inputw = min(Dx(r) / 3, maxwidth) + pad;
|
||||
inputw = min(Dx(r) / 3, maxwidth);
|
||||
inputw = max(inputw, textwidth(font, input.string)) + pad;
|
||||
itemoff = inputw + 2 * ltwidth;
|
||||
end = Dx(r) - ltwidth;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user