diff options
author | Robin Jarry <robin@jarry.cc> | 2023-04-10 16:56:04 +0200 |
---|---|---|
committer | Robin Jarry <robin@jarry.cc> | 2023-04-15 17:26:37 +0200 |
commit | 66995d17eea2a45a4e8d88a7739db18c13b91bf7 (patch) | |
tree | ef57d125b88f547645599c368dea71dd59f35a83 /widgets/headerlayout.go | |
parent | 8e66f3c364354959abaea2517bf5c18d2fee92ab (diff) | |
download | aerc-66995d17eea2a45a4e8d88a7739db18c13b91bf7.tar.gz |
dialog: avoid panic when window is too small
Avoid negative offsets and limit height to the parent context height.
Fixes: https://todo.sr.ht/~rjarry/aerc/142
Reported-by: Akspecs <akspecs@gmail.com>
Signed-off-by: Robin Jarry <robin@jarry.cc>
Tested-by: Koni Marti <koni.marti@gmail.com>
Diffstat (limited to 'widgets/headerlayout.go')
0 files changed, 0 insertions, 0 deletions