[gtk+] [broadway] Fix canvas resize when resizing browser window
- From: Alexander Larsson <alexl src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] [broadway] Fix canvas resize when resizing browser window
- Date: Tue, 12 Apr 2011 09:35:09 +0000 (UTC)
commit afdde925b8a5dbd240679f3fd4627c8203db36ed
Author: Alexander Larsson <alexl redhat com>
Date: Tue Apr 12 11:34:13 2011 +0200
[broadway] Fix canvas resize when resizing browser window
We always have to resize the canvas, even when its in a toplevel.
gdk/broadway/broadway.js | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/gdk/broadway/broadway.js b/gdk/broadway/broadway.js
index a78a44e..82c7ac4 100644
--- a/gdk/broadway/broadway.js
+++ b/gdk/broadway/broadway.js
@@ -654,6 +654,9 @@ function cmdMoveResizeSurface(id, has_pos, x, y, has_size, w, h)
/* Flush any outstanding draw ops before (possibly) changing size */
flushSurface(surface);
+ if (has_size)
+ resizeCanvas(surface.canvas, w, h);
+
if (surface.visible) {
if (surface.window) {
/* TODO: This moves the outer frame position, we really want the inner position.
@@ -665,9 +668,6 @@ function cmdMoveResizeSurface(id, has_pos, x, y, has_size, w, h)
if (has_size)
resizeBrowserWindow(surface.window, w, h);
} else {
- if (has_size)
- resizeCanvas(surface.canvas, w, h);
-
if (has_pos) {
var xOffset = surface.x;
var yOffset = surface.y;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]