[Swingosc-devel] JSCWindow:setInnerExtent broken
Brought to you by:
sciss
From: James H. <jam...@gm...> - 2009-01-06 04:16:55
|
setInnerExtent { arg w, h; // resize window keeping top left corner fixed var b; b = this.prBoundsReadOnly; w = w ? b.width; h = h ? b.height; this.bounds = Rect.new( b.left, b.top + b.height - h, w, h ); } this.prBoundsReadOnly dies because JSCWindow doesn't implement that method. Is this the correct fix? It seems to work. setInnerExtent { arg w, h; // resize window keeping top left corner fixed var b; b = this.bounds; w = w ? b.width; h = h ? b.height; this.bounds = Rect.new( b.left, b.top + b.height - h, w, h ); } hjh : H. James Harkins : jam...@de... : http://www.dewdrop-world.net .::!:.:.......:.::........:..!.::.::...:..:...:.:.:.:..: "Come said the Muse, Sing me a song no poet has yet chanted, Sing me the universal." -- Whitman |