[Swingosc-devel] JSCScrollView issue adjusting canvas size to contents
Brought to you by:
sciss
From: James H. <jam...@gm...> - 2010-02-15 02:18:38
|
This is a weird one. I can't reproduce it with a simple GUI. My performance GUI sets up a window with a flowview on the left for a "toolbar," and the right-hand side has some spaces for voicer or process controls. The right hand side is a scrollview containing a flowview. I found the guis in the flowview don't work unless I allocate more vertical space than needed, then shrink the flowview to contents. In Cocoa, the size of the scroll bar resizes and scrolling to the bottom of the scrollbar goes to the bottom of the actual content. In SwingOSC 0.64 (Mac), the scrollview adjusts its innerBounds automatically (but only after touching the scrollbar), and scrolling correctly goes to the bottom of the content, no empty space. The above two are fine. But... In SwingOSC 0.64 (puredyne linux), the scrollview does NOT adjust the inner bounds. There are 1600 pixels of content, but the scrollbar covers 20000 pixels. To reproduce: Install ddwChucklib, ddwGUIEnhancements and ddwGUIEnhancementsForSwingOSC quarks. Recompile lib. Run in sc: BP.loadGui; I've tried to reproduce it with simpler code, but it works correctly in other scenarios (including drawing only the right-hand panel in a dedicated window). I don't know what's different about the more complex window that it would break, but only in linux. Or, is there a way I can debug this in linux myself? I'm not familiar with Java dev/debugging tools, though. -- James Harkins /// dewdrop world 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 |