Forums > Javascript

Changing a box size in presentation view

January 20, 2011 | 11:10 pm

This only works in regular view. How do I make this work in presentation view?

function list(a)
{
if(isNaN(this.patcher.parentpatcher)==0){return;}
var myrect =this.patcher.box.rect;
var width = arguments[0];
var height = arguments[1];
myrect[2] = myrect[0]+width;
myrect[3] = myrect[1]+height;
this.patcher.box.rect = myrect;
post("resizing bcanvas to",myrect);
post();
}

Georg


January 20, 2011 | 11:24 pm

I do this outside js with a presentation_size message or with a presentation_rect message…


Viewing 2 posts - 1 through 2 (of 2 total)