Skip to content

Commit

Permalink
changed way upper bound is calculated by composer resize submodule
Browse files Browse the repository at this point in the history
  • Loading branch information
julianlam committed Aug 24, 2016
1 parent e2338ba commit 0ca3271
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion static/lib/composer/resize.js
Expand Up @@ -199,7 +199,12 @@ define('composer/resize', [], function() {
};

function getUpperBound() {
return $headerMenu.height() + 1;
try {
var rect = $headerMenu.get(0).getBoundingClientRect();
return rect.height + rect.top;
} catch (e) {
return 0;
}
}

function resizeWritePreview(postContainer) {
Expand Down

0 comments on commit 0ca3271

Please sign in to comment.