Search

MaintainScrollPositionOnPostback with .Net 4 and Firefox 4 by rdlauer

Closed
as Fixed Help for as Fixed

4
0
Sign in
to vote
Type: Bug
ID: 675737
Opened: 6/16/2011 12:44:18 PM
Access Restriction: Public
Moderator Decision: Sent to Engineering Team for consideration
1
Workaround(s)
0
User(s) can reproduce this bug
The MaintainScrollPositionOnPostback page directive does not work correctly with Mozilla Firefox 4. On a postback the scroll position reverts to the top of the page.
Details (expand)

Visual Studio/Team Foundation Server/.NET Framework Tooling version

Visual Studio 2010 SP1

Steps to reproduce

Add the MaintainScrollPositionOnPostback="true" directive to the top of a page. Perform a postback, note that the position reverts to the top.

Note that usage of this in your browser definition file corrects the problem:
<browsers>
    <browser id="Firefox4" parentID="Firefox">
        <identification>
            <capability name="majorversion" match="4" />
        </identification>
        <capabilities>
            <capability name="supportsMaintainScrollPositionOnPostback" value="true" />
        </capabilities>
    </browser>
</browsers>

Product Language

English

Operating System

Windows 7

Operating System Language

English

Actual results

Scroll position is not maintained after a postback with Firefox 4.

Expected results

Scroll position should be maintained after a postback with Firefox 4.
File Attachments
0 attachments
Sign in to post a comment.
Posted by Microsoft on 7/20/2011 at 11:47 PM
.NET when shipped supported FireFox up 3.x, the next version of the framework will be future proofed supporting all future versions of Firefox. Until then the workaround associated with this connect item will solve the issue but you might want to add an entry for version 5 as well.
Posted by rdlauer on 6/22/2011 at 5:55 AM
Same goes for Firefox 5.
Posted by MS-Moderator01 on 6/16/2011 at 12:49 PM
Thank you for your feedback, we are currently reviewing the issue you have submitted. If this issue is urgent, please contact support directly(http://support.microsoft.com)
Sign in to post a workaround.
Posted by rdlauer on 6/16/2011 at 12:47 PM
Browser definition file:

<browsers>
    <browser id="Firefox4" parentID="Firefox">
        <identification>
            <capability name="majorversion" match="4" />
        </identification>
        <capabilities>
            <capability name="supportsMaintainScrollPositionOnPostback" value="true" />
        </capabilities>
    </browser>
</browsers>