Merge pull request #6443 from umbraco/v8/bugfix/0000-TinyMCE-toolbar-width-fix
lets not set a specific width, but do it by CSS.
This commit is contained in:
@@ -1172,7 +1172,6 @@ function tinyMceService($rootScope, $q, imageHelper, $locale, $http, $timeout, s
|
||||
var tinyMceRect = editor.editorContainer.getBoundingClientRect();
|
||||
var tinyMceTop = tinyMceRect.top;
|
||||
var tinyMceBottom = tinyMceRect.bottom;
|
||||
var tinyMceWidth = tinyMceRect.width;
|
||||
|
||||
var tinyMceEditArea = tinyMce.find(".mce-edit-area");
|
||||
|
||||
@@ -1184,15 +1183,13 @@ function tinyMceService($rootScope, $q, imageHelper, $locale, $http, $timeout, s
|
||||
.css("visibility", "visible")
|
||||
.css("position", "fixed")
|
||||
.css("top", "177px")
|
||||
.css("margin-top", "0")
|
||||
.css("width", tinyMceWidth);
|
||||
.css("margin-top", "0");
|
||||
} else {
|
||||
toolbar
|
||||
.css("visibility", "visible")
|
||||
.css("position", "absolute")
|
||||
.css("top", "auto")
|
||||
.css("margin-top", "0")
|
||||
.css("width", tinyMceWidth);
|
||||
.css("margin-top", "0");
|
||||
}
|
||||
|
||||
},
|
||||
|
||||
@@ -657,6 +657,8 @@
|
||||
// had to overwrite defaults from TinyMCE, needed for buttons panel to float to new line in narrow space.
|
||||
.umb-grid .mce-container > div {
|
||||
white-space: normal;
|
||||
left:0;
|
||||
right:0;
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user