Seth,
Thanks for the pointer to log.rb.
Scrolling is definitely confusing. I got it to work with the
following changes to your code:
1) Change the outer-most stack to be non-scrolling:
def setup
stack :scroll => false, :width => 1.0, :height => 1.0 do
flow do
...
2) Change the height of the @log stack to ":height => height-40"
Complete code here: http://gist.github.com/15194
There's a weird interaction between inner and outer stacks with
respect to scrolling. Also confusing is that setting ":scroll =>
true" then requires the height/width parameters. I'm not familiar
enough yet with Shoes internals to understand why this is required.
Also: the inner stack that gets scrolled (@log) does not respond to
mouse-wheel scrolling. Bug?
- BG
On Oct 6, 2008, at 2:48 PM, Seth Thomas Rasmussen wrote:
On Mon, Oct 6, 2008 at 11:34 AM, Brian Gold <[EMAIL PROTECTED]> wrote:
You need to specify that the stack is scrollable. Also, there was
a typo in
your keypress code (scroll_to should be scroll_top). Here's a
version that
worked for me. Someone should add this sort of code to the Shoes
console,
so we always see the latest debug or error messages...
Agreed, that would be nice.
Take a gander at lib/shoes/log.rb where the meat of the log app is
defined. I tried some modifications similar to your example without
success: http://gist.github.com/15093
I also just cleaned up a few things, moving the indentation of a bunch
of stuff out a level which makes it look more severe than it is.
--
Seth Thomas Rasmussen
http://greatseth.com