Ticket #100 (closed defect: worksforme)
Win2000/XP - Stack with :height too cool to scroll
| Reported by: | jesset77 | Owned by: | why |
|---|---|---|---|
| Milestone: | Raisins | Keywords: | |
| Cc: |
Description
Yep, just whip up a stack like described in #98. Not only do you get #98's black background, the thing refuses to scroll!
Scrolling is our focus here, so on to the unique testcase:
Shoes.app do stack do para "text" stack :width => 300, :height => 300, :margin => 20 do background red end para "text" end end
Run this, vertically resize until everything stops fitting, use the vertical scrollbar. Very similar to the fixed #95, the red stack remains glued to the HUD, so to speak.
This testcase has things that don't make it simple, so let's discuss those.
Stack has a background. All the better to see you with, my dear. Without background effect remains, and thanks to #98 phantom background I can still observe it on my platform.
Stack has a width. Again, visibility. Don't specify width and stack becomes a vertical line, but continues behaving buggily.
Stack contains no content. I just now tried throwing in a para, the contents fail to scroll along with the stack. (interestingly contents do not impact stack's width if height is unspecified? ew..)
Stack has a margin. Also visibility: without the margin, once the window is short enough to reproduce the bug the stack will obscure the following paragraph on scroll. I can't make the stack transparent, #98. So I added a margin which serves my purpose without affecting bug behavior atol.
This is a big one: STACK IS NESTED IN ANOTHER STACK. Would the bug happen without the nesting? The bug would be WORSE without the nesting! (run around, head cut off)
Try removing the stack and repeat the experiment. OMFG the broken baseline from #99 means all the elements that flow AFTER the poison stack fail to scroll as well!
Are all three of these bugs somehow related? no idea! I can recreate a broken baseline in #99 without a broken :height stack. If I use, for example images instead of broken stacks, I still have a broken baseline and everything scrolls fine. If I use para's with different fonts like in #99 testcase 2, uh... I never get a scrollbar.
