diff options
author | cinap_lenrek <cinap_lenrek@gmx.de> | 2013-10-20 22:38:35 +0200 |
---|---|---|
committer | cinap_lenrek <cinap_lenrek@gmx.de> | 2013-10-20 22:38:35 +0200 |
commit | 95c865a4974cd2e1429a0b19da9f8f0e45891fbe (patch) | |
tree | 9800d7ca0ca7afc6fde544677509e2fd08c9fda5 /sys/src/cmd/acme/wind.c | |
parent | 8ceb100fa4081cc441acc693190ce7da55fcb3af (diff) |
acme: attempt to fix tag lines collapsing to zero height on window move (issue 189)
we'r getting a rectangle taller than a single line from
coladd() which causes textresize() to collapse the tag
text to zero height.
should probably fix coladd() instead.
Diffstat (limited to 'sys/src/cmd/acme/wind.c')
-rw-r--r-- | sys/src/cmd/acme/wind.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/src/cmd/acme/wind.c b/sys/src/cmd/acme/wind.c index bea06dd92..90acb486b 100644 --- a/sys/src/cmd/acme/wind.c +++ b/sys/src/cmd/acme/wind.c @@ -184,7 +184,8 @@ winresize(Window *w, Rectangle r, int safe) w->taglines = wintaglines(w, r); r1.max.y = min(r.max.y, r1.min.y + w->taglines*font->height); } - + if(Dy(r1) < font->height) + r1.max.y = r1.min.y+font->height; y = r1.max.y; if(!safe || !eqrect(w->tag.r, r1)){ textresize(&w->tag, r1); |