mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-04-20 23:46:14 -04:00
working on resize
This commit is contained in:
parent
96d6e7c1b7
commit
0685e563ed
3 changed files with 15 additions and 14 deletions
|
@ -370,19 +370,6 @@ function handshake()
|
|||
$('#readonlyinput').on('click',function(){
|
||||
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 editbarHeight = $('.menu_left').height() + 2 + "px";
|
||||
var containerTop = $('.menu_left').height() + 5 + "px";
|
||||
$('#editbar').css("height", editbarHeight);
|
||||
$('#editorcontainer').css("top", containerTop);
|
||||
}
|
||||
|
||||
$.extend($.gritter.options, {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue