Ticket #100 (closed defect: worksforme)

Opened 6 months ago

Last modified 6 months ago

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.

Change History

Changed 6 months ago by why

  • owner set to why
  • status changed from new to assigned

Wonderful, thankyou for spotting this, I haven't been testing fixed height slots! The fix was simple: the slots just needed a repaint. Try [480], works for me.

Changed 6 months ago by why

  • milestone set to Raisins

Changed 6 months ago by jesset77

(sets reminder to check when get home) Thanks, man! :)

Changed 6 months ago by jesset77

Hey loosey, it's feexed! :)

Changed 6 months ago by jesset77

  • status changed from assigned to closed
  • resolution set to worksforme
Note: See TracTickets for help on using tickets.