]> err.no Git - libchamplain/commitdiff
Tell the Champlain::View to take the whole canvas
authorEmmanuel Rodriguez <emmanuel.rodriguez@gmail.com>
Fri, 18 Sep 2009 20:52:46 +0000 (22:52 +0200)
committerPierre-Luc Beaudoin <pierre-luc@pierlux.com>
Mon, 21 Sep 2009 16:19:45 +0000 (12:19 -0400)
bindings/perl/Champlain/lib/Champlain.pm

index c92988e8edbc082141a50e5e92e8ebe08518779e..4185fb980e0a33ee0853ee548a91ef17999caee7 100644 (file)
@@ -16,7 +16,7 @@ Champlain - Map rendering canvas
        # Create the map view and set some properties
        my $map = Champlain::View->new();
        $map->set('scroll-mode', 'kinetic');
-       $map->set_size(800, 600);
+       $map->set_size($stage->get_size);
        $map->set_property('zoom-level', 7);
        $map->center_on(45.466, -73.75);