FixedHeader with Sharepoint 2013 Online

FixedHeader with Sharepoint 2013 Online

gozillagozilla Posts: 6Questions: 0Answers: 1

Hello,
I fixed the problem of used Header pages within SharePoint Online 2013 because it does not work, after several checks I solved by adding the dataTables.fixedHeader.js the following code at line 213

$('#s4-workspace')
    .on( 'scroll'+this.s.namespace, function () {
        that.update();
    });

    _constructor: function ()
    {
        var that = this;
        var dt = this.s.dt;
        $('#s4-workspace')
            .on( 'scroll'+this.s.namespace, function () {
                that.update();
            });
        $(window)
            .on( 'scroll'+this.s.namespace, function () {
                
                that._scroll();
            } )
            .on( 'resize'+this.s.namespace, function () {
                that.s.position.windowHeight = $(window).height();
                
                that.update();
            } );

Another solution is not to change the original js?

Thank you

Replies

  • allanallan Posts: 61,726Questions: 1Answers: 10,109 Site admin

    Can you link to a test case that shows the issue please. Can you also try using the nightly version if you haven't already.

    Allan

  • gozillagozilla Posts: 6Questions: 0Answers: 1

    Hello,
    I have tested with version 3.1.1dev but not working.
    It test works if I enter the code:

    $(document).ready(function(){
       $('#s4-workspace').scroll(function() {
            $('#scDataTableTask').DataTable().fixedHeader.adjust();
        });
    });
    

    Outside the Sharepoint can not replicate the problem has.
    Maybe some js sharepoint breaks

  • allanallan Posts: 61,726Questions: 1Answers: 10,109 Site admin

    I'd need a link to a page showing the issue in order to be able to help address the issue.

    Allan

This discussion has been closed.