mirror of
https://github.com/discourse/discourse.git
synced 2025-09-06 10:50:21 +08:00
Have menu panels show up on top of the composer, stop composer at header
This commit is contained in:
parent
1bd0f5b015
commit
f5cbaf5609
4 changed files with 32 additions and 19 deletions
7
vendor/assets/javascripts/div_resizer.js
vendored
7
vendor/assets/javascripts/div_resizer.js
vendored
|
@ -42,7 +42,12 @@ performDrag = function(e, opts) {
|
|||
thisMousePos = mousePosition(e).y;
|
||||
size = originalDivHeight + (originalPos - thisMousePos);
|
||||
lastMousePos = thisMousePos;
|
||||
size = Math.min(size, $(window).height());
|
||||
|
||||
var maxHeight = $(window).height();
|
||||
if (opts.maxHeight) {
|
||||
maxHeight = opts.maxHeight(maxHeight);
|
||||
}
|
||||
size = Math.min(size, maxHeight);
|
||||
size = Math.max(min, size);
|
||||
sizePx = size + "px";
|
||||
if (typeof opts.onDrag === "function") {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue