Scrollbar incorrectly shown for fancybox-inner #688
Comments
Are you using some touch-enabled device? Could you check what are values of |
I evaluated the expressions in both Chrome and FireFox. I am running Windows 8 in Desktop mode on a Lenovo T430S, which does not have a touch screen: document.createTouch: function createTouch() { [native code] } |
Any progress on this? |
this is how isTouch is defined by fancybox2: "The touch events support introduced with Gecko 18.0 (Firefox 18 / Thunderbird 18 / SeaMonkey 2.15 / Firefox OS 1.0.1) has been disabled on the desktop version of Firefox, as some popular sites including Google and Twitter are not working properly. Once the bug is fixed, the API will be enabled again. To enable it anyway, open about:config and set the dom.w3c_touch_events.enabled pref to 2. The mobile versions including Firefox for Android and Firefox OS are not affected by this change. Also, the API has been enabled on the Metro-style version of Firefox for Windows 8." Simply comment that portion of the code, or modify the isTouch definition to false. |
The problem affects all browsers on my Windows 8 computer, not just Firefox. After some experimentation, it appears that my Logitech T650 touchpad driver causes the OS to report that my laptop is a touch device. It's debatable whether this is correct behavior, but I could just as easily have a touch monitor and still be using a desktop browser. With the current version I am getting iFrame popups looking like this: When I comment out the following code:
I get the correct result: If the iFrame content is taller, then scrollbars appear, as they should according to the visibiliy: auto setting. Regardless of whether the code in question is commented out, the popup looks fine on my iPad. I guess I don't understand the purpose of setting visibility to 'scroll', instead of 'auto' on touch devices. Can somebody provide some insight? |
Just speculation here, but it is probably code to fix some other bug! (perhaps on an older browser version) |
I think that snippet fixed iOS bug, but it works fine now, maybe it was fixed with iOS7. So, I think these lines will be removed. |
For anyone interested, this is still an issue, but there a few solutions. Option 1: .fancybox-inner{ Option 2: Either comment this out or set 'scroll' to 'auto' instead. Option 3: |
When using the desktop version of Chrome for Windows 8, FancyBox incorrectly thinks that I am on a touch device and adds overflow: scroll to .fancybox-inner for popups of type iFrame. This is occurring in line 880 in FancyBox version 2.1.5:
The result is that my content is clipped at the bottom, by the height of the horizontal scrollbar.
The text was updated successfully, but these errors were encountered: