From 6efb6054b0013db3bb593eefd3daaaa6f667c097 Mon Sep 17 00:00:00 2001 From: abe- Date: Sat, 17 Jun 2017 21:36:31 +0200 Subject: [PATCH] parcelas --- docs/_includes/_parcelas.html | 2 +- docs/graficos/parcelas.js | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/docs/_includes/_parcelas.html b/docs/_includes/_parcelas.html index 1ba197e..397e372 100644 --- a/docs/_includes/_parcelas.html +++ b/docs/_includes/_parcelas.html @@ -1,4 +1,4 @@
-
diff --git a/docs/graficos/parcelas.js b/docs/graficos/parcelas.js index 3f33926..68876c8 100644 --- a/docs/graficos/parcelas.js +++ b/docs/graficos/parcelas.js @@ -27,8 +27,9 @@ function setup() { pg = createGraphics(800, 519); var as = 519. / 800.; zoom = .95; - var w = windowWidth*zoom; - var h = windowHeight*as*zoom; + + var framesWidth = window.parent.$("iframe.p5").width(); + var framesHeight = window.parent.$("iframe.p5").height(); createCanvas(w,h); nombres = new Array("Norte","Duero","Ebro","Pirineo","Jucar","Tajo","Guadiana","Guadalquivir","Sur", "Segura", "Baleares y Canarias");