mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-02-01 03:12:42 +01:00
working redraw and draw on startup
This commit is contained in:
parent
7d04d7309f
commit
9170effb27
1 changed files with 12 additions and 1 deletions
|
@ -370,6 +370,18 @@ function handshake()
|
||||||
$('#readonlyinput').on('click',function(){
|
$('#readonlyinput').on('click',function(){
|
||||||
padeditbar.setEmbedLinks();
|
padeditbar.setEmbedLinks();
|
||||||
});
|
});
|
||||||
|
// Listen for resize events (sucks but needed as iFrame ace_inner has to be position absolute
|
||||||
|
// A CSS fix for this would be nice but I'm not sure how we'd do it.
|
||||||
|
$(window).resize(function(){
|
||||||
|
redrawEditbar();
|
||||||
|
});
|
||||||
|
redrawEditbar();
|
||||||
|
}
|
||||||
|
|
||||||
|
var redrawEditbar = function(){
|
||||||
|
var height = $('.menu_left').height() + 4 + "px";
|
||||||
|
$('#editbar').css("height", height);
|
||||||
|
$('#editorcontainer').css("top", height);
|
||||||
}
|
}
|
||||||
|
|
||||||
$.extend($.gritter.options, {
|
$.extend($.gritter.options, {
|
||||||
|
@ -937,4 +949,3 @@ exports.handshake = handshake;
|
||||||
exports.pad = pad;
|
exports.pad = pad;
|
||||||
exports.init = init;
|
exports.init = init;
|
||||||
exports.alertBar = alertBar;
|
exports.alertBar = alertBar;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue