I'm working on a Synchronet JS door that uses the Frame and Scrollbar objects defined in frame.js and scrollbar.js. My door, a voting door, has
time I re-use it for new data. I've noticed that the scrollbar doesn't always seem to update properly with the length of the message in the frame. I'm wondering if I'm not using it properly though.
Then my script enters the loop, where displayFrame.putmsg() is called for each piece of data I want to display. When I display the Frame, I call displayFrame.invalidate(), displayFrameScrollbar.cycle(), and displayFrame.cycle().
longer than the terminal height). For screen redraw optimization, I'd like
I haven't looked at scrollbar.js in a while, but I haven't seen this problem with it before. I'll take a peek at how SlyVote is using it (if these changes are in CVS) to see if I can think of any ideas.
time I re-use it for new data. I've noticed that the scrollbar
doesn't always seem to update properly with the length of the
message in the frame. I'm wondering if I'm not using it properly
What seems to be happening is that if I put a fairly short message into the frame, then a longer message (where it needs to scroll), then another short message, the frame will still scroll down and the scrollbar acts accordingly, as if the longer message was still there, but the bottom part
of the message is blank where the longer message was. Do you know of a way to clear the frame of all of its data before putting a new message into it?
What seems to be happening is that if I put a fairly short message
into the frame, then a longer message (where it needs to scroll),
then another short message, the frame will still scroll down and the
scrollbar acts accordingly, as if the longer message was still
there, but the bottom part
Yep, this has been fixed, along with a couple of other things.
Sysop: | Ree |
---|---|
Location: | Toronto, ON |
Users: | 2 |
Nodes: | 10 (0 / 10) |
Uptime: | 116:18:11 |
Calls: | 375 |
Calls today: | 2 |
Files: | 2 |
Messages: | 38,888 |