changeset 68987:5d68b6ede0d1

* window.c (window_min_size_1): Ensure room for the scroll bar and fringes.
author Chong Yidong <cyd@stupidchicken.com>
date Sat, 18 Feb 2006 22:17:09 +0000
parents 18babada4b1e
children afb0dc51b7a3
files src/ChangeLog src/window.c
diffstat 2 files changed, 9 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/ChangeLog	Sat Feb 18 18:39:31 2006 +0000
+++ b/src/ChangeLog	Sat Feb 18 22:17:09 2006 +0000
@@ -1,3 +1,8 @@
+2006-02-18  Chong Yidong  <cyd@stupidchicken.com>
+
+	* window.c (window_min_size_1): Ensure room for the scroll bar and
+	fringes.
+
 2006-02-17  Romain Francoise  <romain@orebokech.com>
 
 	* puresize.h (BASE_PURESIZE): Increment to 1200000.
--- a/src/window.c	Sat Feb 18 18:39:31 2006 +0000
+++ b/src/window.c	Sat Feb 18 22:17:09 2006 +0000
@@ -2568,7 +2568,10 @@
   else
     {
       if (width_p)
-	size = window_min_width;
+	size = max (window_min_width,
+		    (MIN_SAFE_WINDOW_WIDTH
+		     + WINDOW_FRINGE_COLS (w)
+		     + WINDOW_SCROLL_BAR_COLS (w)));
       else
 	{
 	  if (MINI_WINDOW_P (w)