Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // This function ensures that we allways anchor the decorator correctly according
- // to the page margins.
- function __updatePageMargin() {
- if (!flickableItem)
- return
- var p = flickableItem.parent
- while (p) {
- if (p.hasOwnProperty("__isPage")) {
- __hasPageHeight = function() { return p.height == flickableItem.height }
- __hasPageWidth = function() { return p.width == flickableItem.width }
- __topPageMargin = function() { return p.anchors.topMargin }
- __bottomPageMargin = function() { return p.anchors.bottomMargin }
- __leftPageMargin = function() { return p.anchors.leftMargin }
- __rightPageMargin = function() { return p.anchors.rightMargin }
- return;
- } else {
- p = p.parent;
- }
- }
- }
- LINE 84: __hasPageHeight = function() { return p.height == flickableItem.height }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement