B2theRandino / iui

Automatically exported from code.google.com/p/iui
MIT License
0 stars 0 forks source link

New slide effect doesn't work properly when starting from long page #163

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Start on a long, scrolling page with links that transition to a new block
2. Scroll down on the page
3. Select an item, causing scrolling to the next block

What is the expected output? What do you see instead?

You should see a sliding effect, but you don't, until it displays the whole 
page. If you're at the 
top of the starting page, the new sliding effect works great, but if you scroll 
down at all on the 
starting page, you can see that you slide over to the same relative location on 
the destination 
block--even if that happens to be blank. Eventually, it will relocate to the 
top of the page.

What version of the product are you using? On what operating system?

IUI .3 on OS 3.0.1

Please provide any additional information below.

I haven't changed the out-of-the-box css at all.

Original issue reported on code.google.com by richard....@gmail.com on 14 Aug 2009 at 12:51

Attachments:

GoogleCodeExporter commented 8 years ago
Is there a test page for this?  Can it be reproduced with one of the samples?

Original comment by msgilli...@gmail.com on 14 Aug 2009 at 7:57

GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
It can be reproduced. See 
http://melcher.it/iui3_debug/issues/issue163.html#_home -
scroll down and then click on a link. You can fix it if you insert a 
scrollTo(0, 1);
in the click eventlistener:

if (link.href && link.hash && link.hash != "#" && !link.target)
        {
            scrollTo(0, 1);
            link.setAttribute("selected", "true");
            iui.showPage($(link.hash.substr(1)));
            setTimeout(unselect, 500);
        }

but its bumpy.

Original comment by melcher....@gmail.com on 14 Aug 2009 at 10:28

GoogleCodeExporter commented 8 years ago
Yep, that's the issue. In my app, I'm loading a new page using ASP. I'm not 
trying to do anything dynamic with 
AJAX.

Original comment by richard....@gmail.com on 15 Aug 2009 at 1:29

GoogleCodeExporter commented 8 years ago
Anyone want to attach a test case we can add to the web-app/test directory?

Original comment by msgilli...@gmail.com on 7 Oct 2009 at 8:03