Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>To use your example from the mailing list:</p> <pre><code>Shoes.app do @s0 = stack do background red 100.times do para "yay" end end @s = stack do style(:attach =&gt; Window, :top =&gt; height - 100) background lightblue para app.width para app.height end @height = 0 every(1) do unless app.height == @height @s.clear do background lightblue style(:top =&gt; height-100) para app.width para app.height end end end end </code></pre> <p>Hi Sam!</p> <p>Because of the problems I've had with :scroll => true and setting heights (usually a bad idea with the way Shoes is designed), I would do something similar this way:</p> <p><a href="http://gist.github.com/54431" rel="nofollow noreferrer">http://gist.github.com/54431</a></p> <p>This way, you'll find that by being attached to a window, scrolling the whole app should work a lot nicer. I tried running this in OSX and the whole sticky fandango failed on me entirely, so I've since booted into linux (which I will assume you are using too). In linux, the mouse scroll wheel works as well, too.</p> <p>I keep the style in it's own method call, instead of the stack(styles) way of doing it, since for some reason you cannot save the stack to an instance variable if you do so.</p> <p>Also, you don't need to save the app object, since self is (almost) always Shoes.app, and if it isn't, there's a method called 'app' to get it.</p> <p>I hope this helps.</p> <p><a href="http://article.gmane.org/gmane.comp.lib.shoes/2997" rel="nofollow noreferrer" title="thread on gmane">http://article.gmane.org/gmane.comp.lib.shoes/2997</a></p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload