Merge lp:~rvb/maas/reveal-bug into lp:~maas-committers/maas/trunk
Proposed by
Raphaël Badin
Status: | Merged | ||||
---|---|---|---|---|---|
Approved by: | Raphaël Badin | ||||
Approved revision: | no longer in the source branch. | ||||
Merged at revision: | 1414 | ||||
Proposed branch: | lp:~rvb/maas/reveal-bug | ||||
Merge into: | lp:~maas-committers/maas/trunk | ||||
Diff against target: |
52 lines (+20/-1) 2 files modified
src/maasserver/static/js/reveal.js (+9/-1) src/maasserver/static/js/tests/test_reveal.js (+11/-0) |
||||
To merge this branch: | bzr merge lp:~rvb/maas/reveal-bug | ||||
Related bugs: |
|
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Jeroen T. Vermeulen (community) | Approve | ||
Review via email: mp+140860@code.launchpad.net |
Commit message
Fix computation of height in reveal.js (take margin and padding into account).
Description of the change
The reveal.js module was computing the height of the 'revealed' panel incorrectly, not taking into account the padding and the margin. This branch fixes that.
Here is how it looks with that fix: http://
To post a comment you must log in.
The screenshot is a nice touch. I tried to find some helpful utility function or attribute in YUI to simplify this job, but the documentation was so terse it was just meaningless to me. Might be docHeight, for instance, but it might not. :(
One question: should this really include the margin? It seems a bit "greedy" to take that space too. Then again I guess it depends on the page.