Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 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).
- Here's an example of improperly working code:
- <div data-bb-type="screen" data-bb-scroll-effect="off" data-bb-effect="fade">
- <img src="images/pic.png" style="position: absolute; width: 100%; height: 100%;" />
- <div data-bb-type="action-bar">
- <div data-bb-type="action" data-bb-style="button" data-bb-img="images/bbm.png" onclick="setStatus();">Update BBM</div>
- </div>
- </div>
- A temporary workaround is to place the screen images inside
- <div style="position: fixed; height: 100%; width: 100%;"></div>
- and adding a z-index of 1 or higher to the action-bar.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement