javascript - Mac Safari 7 Rendering Issue scrollLeft() issue -


i created dynamic table scrolls left , right, has resizable columns, has fixed header, etc. table works great on every browser i've tried. ie8 looks (missing features, still good).

this issue arises when try view table in safari 7.0.4 on macbook.

attached should (the fixed header on bottom demonstration purposes):

enter image description here

when scroll, fixed header, body, , fixed scrollbar connected via jquery scrollleft() functions (scroll one, scroll all):

var tableheaderspace = $('.table-full-wrap-space'),     tableheader = $('.table-full-wrap-header'),     tablebody = $('.table-full-wrap-body'),     tablescroll = $('.table-full-wrap-scroll');  tablescroll.bind('scroll', function() {     tableheader.scrollleft(tablescroll.scrollleft());     tablebody.scrollleft(tablescroll.scrollleft()); });  tableheader.bind('scroll', function() {     tablescroll.scrollleft(tableheader.scrollleft());     tablebody.scrollleft(tableheader.scrollleft()); });  tablebody.bind('scroll', function() {     tablescroll.scrollleft(tablebody.scrollleft());     tableheader.scrollleft(tablebody.scrollleft()); });  $(window).bind("scroll", function() {     var tableheaderoffset = tableheaderspace.offset().top;     if (this.pageyoffset >= tableheaderoffset) {         tableheader.addclass('isfixed');     } else {         tableheader.removeclass('isfixed');     } }); 

again, works great...but scroll right bit more, browser starts duplicating content within fixed header:

enter image description here

the issue is no 'actual' content being duplicated - sort of browser fragmenting showing duplicates - without adding elements in dom.

the next picture browser doing more "magic". @ points in horizontal scrolling, whole fixed header's colors gets inverted:

enter image description here

i wasn't able snapshot of it, once duplicated "record count" bar below it.

anyone have ideas what's going on here? tried duplicate in jsfiddle no dice. that, assume issue code, results 1 specific browser on mac (safari), , doing strange stuff.

last note - since can't replicate in jsfiddle, i'm not sure how report apple (the working (or 'broken') example proprietary , can't give out access it).

edit: here's jsfiddle tried duplicate issue (very rough - it's functional):

jsfiddle duplication attempt

so - knew wouldn't hot topic question, thought still give go ahead.

as answer, found old table css overlapping new stuff - in turn somehow flipping safari out bad fragmenting it.

previous old code: background: transparent;

new code: background: #fff;

this doesn't make sense me - until else comes hypothesis, i'll mark answer.

now number-one contender worst browser: safari - out, ie.


Comments

Popular posts from this blog

javascript - RequestAnimationFrame not working when exiting fullscreen switching space on Safari -

jsf - How to ajax update an item in the footer of a PrimeFaces dataTable? -

django - CSRF verification failed. Request aborted. CSRF cookie not set -