~launchpad-pqm/launchpad/devel

« back to all changes in this revision

Viewing changes to lib/lp/code/javascript/branchmergeproposal.diff.js

  • Committer: Launchpad Patch Queue Manager
  • Date: 2011-02-22 19:36:50 UTC
  • mfrom: (12374.5.7 diff-overlay-is-huuuuuuge)
  • Revision ID: launchpad@pqm.canonical.com-20110222193650-wn57uq3dghg6x72u
[r=sinzui][ui=sinzui][bug=687379] Changes alignment of diff overlay
        popup to align on the diff popup link, rather than on the viewport,
        so the diff won't expand above the top of the page.

Show diffs side-by-side

added added

removed removed

Lines of Context:
73
73
                var diff_overlay = new DiffOverlay({
74
74
                        bodyContent: Y.Node.create(formatted_diff),
75
75
                        align: {
76
 
                            points: [Y.WidgetPositionAlign.CC,
77
 
                                     Y.WidgetPositionAlign.CC]
 
76
                            node: node,
 
77
                            points: [Y.WidgetPositionAlign.TL,
 
78
                                     Y.WidgetPositionAlign.TL]
78
79
                        },
79
80
                        progressbar: false
80
81
                    });