From 6de05673a166fbb46a366c0be65ec1541dba313f Mon Sep 17 00:00:00 2001 From: Emmanuel Rodriguez Date: Fri, 18 Sep 2009 22:52:46 +0200 Subject: [PATCH] Tell the Champlain::View to take the whole canvas --- bindings/perl/Champlain/lib/Champlain.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bindings/perl/Champlain/lib/Champlain.pm b/bindings/perl/Champlain/lib/Champlain.pm index c92988e..4185fb9 100644 --- a/bindings/perl/Champlain/lib/Champlain.pm +++ b/bindings/perl/Champlain/lib/Champlain.pm @@ -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); -- 2.39.5