From 4b4f7c2a24b1d69933b765485f8f54cf8f82626f Mon Sep 17 00:00:00 2001 From: abe- Date: Sat, 17 Jun 2017 21:42:24 +0200 Subject: [PATCH] parcelas --- docs/graficos/parcelas.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/graficos/parcelas.js b/docs/graficos/parcelas.js index de2f003..6ac3cee 100644 --- a/docs/graficos/parcelas.js +++ b/docs/graficos/parcelas.js @@ -28,8 +28,8 @@ function setup() { var as = 519. / 800.; zoom = .95; - var framesWidth = window.parent.$("iframe.p5").width(); - var framesHeight = window.parent.$("iframe.p5").height(); + var framesWidth = document.getElementbyId("#p5").offsetWidth; + var framesHeight = document.getElementbyId("#p5").offsetHeight; createCanvas(framesWidth,framesHeight); nombres = new Array("Norte","Duero","Ebro","Pirineo","Jucar","Tajo","Guadiana","Guadalquivir","Sur", "Segura", "Baleares y Canarias");