| Page 1 of 1 | [ 6 posts ] |
|
Here is what I tried https://gist.github.com/2413100 but it doesn't work. What am I doing wrong? Can someone take a look at it please?
|
Juan Ignacio DopazoYUI Contributor
|
Some widgets don't behave well when you render then into a hidden container. In this case, ScrollView does some height computations when rendering and if it's hidden that will probably cause it to fail to read the right heights. If you wait until your container widget is visible, then the ScrollView will render ok. Try this:
Code: overlay.on('visibleChange', function renderScrollview(e) { if (e.newVal) { overlay.detach('visibleChange', renderScrollview); scrollView.render(); } }); |
|
I tried and it doesn't work Juan. But I see what you mean and it makes sense.
|
Juan Ignacio DopazoYUI Contributor
|
I made this from my iPod Touch and I see it working there: http://jsfiddle.net/cjBsZ/3/
|
|
Ok it works with 3.5.0. I tried with 3.4.1. I guess I need to update to 3.5.0. Thank you Juan. Much appreciated.
|
|
This trick fixed the problem but it is messing with scrollbar of the page. I cannot scroll after closing the overlay. I use MAC and I swipe fingers down to scroll down but after closing the overlay swipe doesn't work. I have tested this in multiple browsers. I will test in windows and update my findings but it is causing issue on MAC.
Any tip or trick to fix this? (I updated the gist) |
| Page 1 of 1 | [ 6 posts ] |
| You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum |
© 2006-2013 Yahoo! Inc. All rights reserved.
All code on this site is licensed under the BSD License unless stated otherwise.
About This Site · Security Contact Info
Powered by phpBB® Forum Software © phpBB Group