* nsterm.m (updateFrameSize): Call setFrame: on the view when size
authorJan Djärv <jan.h.d@swipnet.se>
Sat, 8 Sep 2012 17:22:15 +0000 (19:22 +0200)
committerJan Djärv <jan.h.d@swipnet.se>
Sat, 8 Sep 2012 17:22:15 +0000 (19:22 +0200)
changes.

Fixes: debbugs:12088

src/ChangeLog
src/nsterm.m

index ec6e39a..dd4719e 100644 (file)
@@ -1,3 +1,8 @@
+2012-09-08  Jan Djärv  <jan.h.d@swipnet.se>
+
+       * nsterm.m (updateFrameSize): Call setFrame: on the view when size
+       changes (Bug#12088).
+
 2012-09-08  Chong Yidong  <cyd@gnu.org>
 
        * syntax.c (Fstring_to_syntax): Doc fix.
index 7337223..583db79 100644 (file)
@@ -5374,11 +5374,13 @@ not_in_argv (NSString *arg)
 
   if (oldr != rows || oldc != cols || neww != oldw || newh != oldh)
     {
+      NSView *view = FRAME_NS_VIEW (emacsframe);
       FRAME_PIXEL_WIDTH (emacsframe) = neww;
       FRAME_PIXEL_HEIGHT (emacsframe) = newh;
       change_frame_size (emacsframe, rows, cols, 0, 0, 1);
       SET_FRAME_GARBAGED (emacsframe);
       cancel_mouse_face (emacsframe);
+      [view setFrame: NSMakeRect (0, 0, neww, newh)];
     }
 }