|
@@ -1897,11 +1897,14 @@
|
|
|
$resizer = $(element),
|
|
$resizer = $(element),
|
|
|
$parent = $resizer.parents(options.parent),
|
|
$parent = $resizer.parents(options.parent),
|
|
|
$target = $parent.find(options.target),
|
|
$target = $parent.find(options.target),
|
|
|
|
|
+ $mainScrollable = $(options.mainScrollable),
|
|
|
onStart = options.onStart,
|
|
onStart = options.onStart,
|
|
|
onResize = options.onResize;
|
|
onResize = options.onResize;
|
|
|
|
|
|
|
|
var initialHeight = $.totalStorage('hue.editor.logs.size') || 80;
|
|
var initialHeight = $.totalStorage('hue.editor.logs.size') || 80;
|
|
|
- $target.css("height", initialHeight + "px");
|
|
|
|
|
|
|
+ window.setTimeout(function () {
|
|
|
|
|
+ $target.css("height", initialHeight + "px");
|
|
|
|
|
+ }, 0);
|
|
|
|
|
|
|
|
var initialOffset = null;
|
|
var initialOffset = null;
|
|
|
$resizer.draggable({
|
|
$resizer.draggable({
|
|
@@ -1915,7 +1918,7 @@
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
|
drag: function (event, ui) {
|
|
drag: function (event, ui) {
|
|
|
- var currentHeight = (ui.offset.top - initialOffset) + initialHeight;
|
|
|
|
|
|
|
+ var currentHeight = (ui.offset.top + $mainScrollable.scrollTop() - initialOffset) + initialHeight;
|
|
|
$.totalStorage('hue.editor.logs.size', currentHeight);
|
|
$.totalStorage('hue.editor.logs.size', currentHeight);
|
|
|
$target.css("height", currentHeight + "px");
|
|
$target.css("height", currentHeight + "px");
|
|
|
ui.offset.top = 0;
|
|
ui.offset.top = 0;
|