aboutsummaryrefslogtreecommitdiffstats
path: root/java/src/com/tightvnc/rfbplayer/VncCanvas.java
diff options
context:
space:
mode:
Diffstat (limited to 'java/src/com/tightvnc/rfbplayer/VncCanvas.java')
-rw-r--r--java/src/com/tightvnc/rfbplayer/VncCanvas.java6
1 files changed, 3 insertions, 3 deletions
diff --git a/java/src/com/tightvnc/rfbplayer/VncCanvas.java b/java/src/com/tightvnc/rfbplayer/VncCanvas.java
index 6c1beecc..9cc98a24 100644
--- a/java/src/com/tightvnc/rfbplayer/VncCanvas.java
+++ b/java/src/com/tightvnc/rfbplayer/VncCanvas.java
@@ -263,10 +263,10 @@ class VncCanvas extends Canvas implements Observer {
if (needResize)
player.desktopScrollPane.setSize(w, h);
- player.vncFrame.pack();
-
// size the canvas
setSize(getPreferredSize());
+
+ player.vncFrame.pack();
}
void resizeEmbeddedApplet() {
@@ -275,9 +275,9 @@ class VncCanvas extends Canvas implements Observer {
if (scrollSize.width != player.dispW ||
scrollSize.height != player.dispH) {
player.desktopScrollPane.setSize(player.dispW, player.dispH);
- player.desktopScrollPane.validate();
}
+ player.desktopScrollPane.validate();
// size the canvas
setSize(getPreferredSize());
}