-
-
Notifications
You must be signed in to change notification settings - Fork 198
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Safari + viewport + Twitter Bootstrap 2 CSS = truncated header #117
Comments
Can this be reproduced on a macbook with safari? If so, please put this code up on jsfiddle and ill take a look. I wont promise anything, I don't really support safari or any mobile browsers. If you figure out a solution let me know |
Yes it can be reproduced on Safari on Macbook: just resize the browser to make it look like an iPhone.
Perhaps you know how to add this in the jsfiddle ? Thanks ! |
one more thing - can you include a screenshot. I see one issue where its calculating the width of the scrollbar wrong and so the header is ~15px shorter. Is that what you see? |
No not really. Thanks again, |
Hello again, Here is a picture when I display the page: And here is a picture after I scroll right: |
Ok, the problem is with the |
sorry, this is low priority since I have no idea now to debug on safari nor do I have the time lately. Ill keep this open. Maybe some kind soul can submit a pull request |
No problem. Thanks for having looked into it. |
I just moved from stickyTableHeaders to floatThead (because table-responsive in BS3 not working with stickyTableHeaders). FloatThead is working fine for everything (a bit tricky to style floating header though) except for all Safari (Mac OS X or iOS) when it comes to horizontal scrolling with table-responsive under BS3. I did some debugging on OS X with Safari and Chrome on Windows (Vmware Fusion) and understood that the actual $('table') has 'min-width' style added by floatThead - on all other browsers when the width becomes small enough the min-width is fixed at 621px. But under Safari this goes down as you further reduce the browser width. Didn't go further but this temporary fix works for my purpose - just manually add min-width: 621px; e.g. |
I added support for perfect-scrollbar, and if you use that, that becomes a workaround for this issue: still not ideal, but better than nothing. |
It appears that this bug stems from the fact that safari's scrollbar width is basically 0. The scrollbar floats on top of the content. To fix this, I would need to detect safari, and perhaps OS? What complicates matters a bit, is that its possible to style the scrollbar in webkit, so you could style it to have a width of 40px, and to NOT float on top of your content. So obviously setting it to 0 is not the best solution. |
fixed crappy jquery version detection debug output
I think this is now pretty much a duplicate of #108 - closing this, move discussion there if you have any more questions |
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Hello,
I found a strange bug which only occurs when you use Safari + the meta tag "viewport" and Twitter Bootstrap 2 CSS: the header which is supposed to scroll is truncated.
For instance if you start with 3 colums visible on your iPhone out of 10 colums availables:
Removing the
<meta name="viewport" content="width=device-width, initial-scale=1.0">
or removing Twitter Bootstrap CSS make the problem disappear.Confirmed on iPhone 4S, iPhone emulator and Mac Mini.
The text was updated successfully, but these errors were encountered: