Code Monkey home page Code Monkey logo

freezeheader's People

Contributors

laertejjunior avatar lahendrix avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

freezeheader's Issues

wrong th width if table has padding and/or border

this patch fixes this issue:

--- jquery.freezeheader.js.orig 2013-12-07 01:43:04.192473929 +0100
+++ jquery.freezeheader.js  2013-12-07 01:52:37.213360271 +0100
@@ -104,10 +104,10 @@
             tabela.append('<thead>' + obj.header.html() + '</thead>');

             obj.container.append(tabela);
-            obj.container.width(obj.header.width());
+            obj.container.width(obj.grid.outerWidth());
             obj.container.height(obj.header.height);
             obj.container.find('th').each(function (index) {
-                var cellWidth = obj.grid.find('th').eq(index).width();
+                var cellWidth = obj.grid.find('th').eq(index).outerWidth();
                 $(this).css('width', cellWidth);
             });

Float the header XX pixels down the page

For my use, I have a static menu bar which is always at the top of the page. I need the header to show up below that, ~100px lower. Is there an easy way to adjust for this in the js file to compensate, and have it's starting point 100px lower?

Additionally, it should be "triggered" to start (show up) 100px sooner as well - as the true header gets hidden 100px sooner.

Thanks.

Horizontal scroll not working

Hello, if the table doesn't fit horizontally in the screen, the horizontal scroll bar doesn't work. It shows only the first left columns. #2 talk about it, but I don't understand where to put that fix code?

Frozen header is shifting to the bottom of the table

As described, the header is migrating to the bottom of the table immediately upon the scroll bar being moved.

My HTML code for the table header is:
`

`

and the JS is:
$("#freeze").freezeHeader({ 'height': '300px' });

Suggestions?

Thanks/Bruce

image

Chemical groupActive ingredientProduct exampleDiseases controlled

Header fixing

Respected Sir,

I have a common table in a jsp page. Based on the click of the tab the table content changes. Now i Have used freeezeheader which works only for the first time on page laod. Then on click of the tab the freezeheader does not work. Kindly help me on this.

Awaiting for ur reply at the earliest.

Thead overlaps with content after table.

If table head is bigger than tbody cells. then it keep overlap with contents after table , even we reached at the end of table. (see attached)

1
2

in my case table header is 4x bigger than columns. and it overlaps with content placed after table. even scrolled to end of table.

add 'headroom' option

It would be extremely useful to be able to specify an amount of space that should be maintained above the table--between the top of the table and the top of the viewing area, that is--so that room can be made (for example) for other things that we want to always be visible above the table.

The best term I can think of for this option is "headroom", although perhaps there's a better name.

Horizontal Scroll issue. And about 1st issue

    /** Fix bug with resizing & horizontal*/
    $(window).resize(function(){
        if(copiedHeader){
            $('#hd' + idObj).width($('#' + idObj).width());
        }
        fix_horizontal();
    });

    /**
     * Fix bug with horizontal scroll
     */
    $(window).scroll(function(){
        fix_horizontal();
    })

Header width on resizing

I fixed it for you:

    /** Fix bug with resizing */
    $(window).resize(function(){
        if($('#hd' + idObj).length){
            $('#hd' + idObj).width($('#' + idObj).width());
        }
    });

Bug:
Try make big table, scroll down for see fixed header, and now, try change window width. See?

adding footer freezing options

Hi, this little script saved my life many times, it would be awesome if you would improve it for table footers as well

表头无法对齐

var cellWidth = obj.grid.find('th').eq(index).width();
$(this).css('width', cellWidth);`

css('width') 和 width() 不完全一样

var cellWidth = obj.grid.find('th').eq(index).width();
$(this).width(cellWidth);`
var cellWidth = obj.grid.find('th').eq(index).css('width');
$(this).css('width', cellWidth);`

Packaging

Hi

Do you have plans to support Bower/NPM for packaging?

Issue with Chrome/Safari with Bootstrap

Hi,
When using the freezeheader plugin, am facing an issue with the header slightly misaligned in Chrome and Safari browsers. The cloned header's width is not aligning properly. I'm using Bootstrap table, and the freezeheader plugin on top of that. It works fine in IE. If anyone could please help advise on this, would be extremely grateful. Thanks again.

Slight distortion of table in Firefox

Hi,

Thank you for the Freezeheader. It is working fine along with the fix in the table header in chrome.

But there is slight distortion in Firefox browser. Could you help me on the same.

Below attached screenshot.

Awaiting for your reply at the earliest

firefx issue

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.