changeset 15944:1071320641b9

merge of '7e96b2a5202c1dd624ba497a2713aec816233996' and 'ac156097f694ba8977900a053e669e480c15e274'
author Sadrul Habib Chowdhury <imadil@gmail.com>
date Tue, 27 Mar 2007 01:38:37 +0000
parents 7db39d873d52 (diff) ee397e53d9ce (current diff)
children 92fa7d6e75b0 5c88d2887cc1
files
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/finch/libgnt/gntwidget.c	Tue Mar 27 00:52:19 2007 +0000
+++ b/finch/libgnt/gntwidget.c	Tue Mar 27 01:38:37 2007 +0000
@@ -521,7 +521,7 @@
 
 		widget->priv.width = width;
 		widget->priv.height = height;
-		if (width >= getmaxx(widget->window) || height >= getmaxy(widget->window)) {
+		if (width + shadow >= getmaxx(widget->window) || height + shadow >= getmaxy(widget->window)) {
 			delwin(widget->window);
 			widget->window = newpad(height + 20, width + 20);
 		}