hiroprotagonist / jquery.mobile.actionsheet

An actionsheet for jquerymobile
103 stars 34 forks source link

reduce wallpaper size #36

Open wang-bin opened 11 years ago

wang-bin commented 11 years ago

wallpaper's size is the whole page size. on some phone (i tested in webkit on HTC One X)it is slow to renderer the wallpaper. I have tried to set the wallpaper size the same as visible window size, the performance is better.

hiroprotagonist commented 11 years ago

Hi! How did you do that?

wang-bin commented 11 years ago

I create wallpaper in _init(), resize and show it in open(), hide it in close(). because the wallpaper's size is the not the whole page size, so i disable scrolling when wallpaper is visible $('body').css('overflow-y','hidden');, and enable scrolling when wallpaper is hidden $('body').css('overflow-y','scroll');.

I can make a patch later.