Skip to content
This repository has been archived by the owner on Aug 26, 2022. It is now read-only.

Commit

Permalink
Merge pull request #2153 from mediocrity/prevent-editor-from-exploding
Browse files Browse the repository at this point in the history
Bug 935705 - Fixed toolbar explodes on window resize.
  • Loading branch information
lmorchard committed Mar 18, 2014
2 parents a1cd541 + b2f2f11 commit 863c078
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions media/js/wiki-edit.js
Expand Up @@ -16,7 +16,6 @@
var setup = function() {
var $appBoxes = $('.approved .boxed');
var $tools = $('div.cke_toolbox');
var $wikiArt = $('#cke_wikiArticle');
var $container = $('.ckeditor-container');
var $content = $('#cke_id_content');
var contentTop = $container.offset().top;
Expand Down Expand Up @@ -64,7 +63,7 @@
$(win).resize(function() { // Recalculate box width on resize
if (fixed) {
$tools.css({
width: $wikiArt.width() - 10
width: $container.width() - 10
}); // Readjust toolbox to fit
}
});
Expand Down

0 comments on commit 863c078

Please sign in to comment.