Advertisement
SCrid2000

bbUI github issue 623

Feb 9th, 2013
114
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 5 0.80 KB | None | 0 0
  1. I was making an app this morning, and I noticed that if I use both data-bb-scroll-effect="off" and position: fixed or position: relative styling for an element, approximately half the screen is just white (although any clickable elements still work).
  2. Here's an example of improperly working code:
  3. <div data-bb-type="screen" data-bb-scroll-effect="off" data-bb-effect="fade">
  4.     <img src="images/pic.png" style="position: absolute; width: 100%; height: 100%;" />
  5.     <div data-bb-type="action-bar">
  6.         <div data-bb-type="action" data-bb-style="button" data-bb-img="images/bbm.png" onclick="setStatus();">Update BBM</div>
  7.     </div>
  8. </div>
  9. A temporary workaround is to place the screen images inside
  10. <div style="position: fixed; height: 100%; width: 100%;"></div>
  11. and adding a z-index of 1 or higher to the action-bar.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement