[libchamplain: 26/39] Give the MapView the same size as the stage



commit d457c0ea178bde293109bd98212438fcfc36e841
Author: Emmanuel Rodriguez <emmanuel rodriguez gmail com>
Date:   Fri Sep 18 10:53:38 2009 +0200

    Give the MapView the same size as the stage

 bindings/perl/Champlain/examples/flickr.pl |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/bindings/perl/Champlain/examples/flickr.pl b/bindings/perl/Champlain/examples/flickr.pl
index 983dd3e..29c5b11 100755
--- a/bindings/perl/Champlain/examples/flickr.pl
+++ b/bindings/perl/Champlain/examples/flickr.pl
@@ -52,7 +52,7 @@ sub main {
 	$map->center_on(47.130885, -70.764141);
 	$map->set_scroll_mode('kinetic');
 	$map->set_zoom_level(5);
-	$map->set_size(640, 480);
+	$map->set_size($stage->get_size);
 	$stage->add($map);
 
 	# Create the markers and marker layer



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]