Advertisement
Guest User

Untitled

a guest
Sep 12th, 2012
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.99 KB | None | 0 0
  1. // This function ensures that we allways anchor the decorator correctly according
  2. // to the page margins.
  3. function __updatePageMargin() {
  4. if (!flickableItem)
  5. return
  6. var p = flickableItem.parent
  7. while (p) {
  8. if (p.hasOwnProperty("__isPage")) {
  9. __hasPageHeight = function() { return p.height == flickableItem.height }
  10. __hasPageWidth = function() { return p.width == flickableItem.width }
  11. __topPageMargin = function() { return p.anchors.topMargin }
  12. __bottomPageMargin = function() { return p.anchors.bottomMargin }
  13. __leftPageMargin = function() { return p.anchors.leftMargin }
  14. __rightPageMargin = function() { return p.anchors.rightMargin }
  15. return;
  16. } else {
  17. p = p.parent;
  18. }
  19. }
  20. }
  21.  
  22.  
  23. LINE 84: __hasPageHeight = function() { return p.height == flickableItem.height }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement