fixing toolbar issues when sticky and RTE width in grid.
This commit is contained in:
@@ -1188,6 +1188,7 @@ 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");
|
||||
|
||||
@@ -1196,16 +1197,18 @@ function tinyMceService($rootScope, $q, imageHelper, $locale, $http, $timeout, s
|
||||
|
||||
if (tinyMceTop < 177 && ((177 + toolbarHeight) < tinyMceBottom)) {
|
||||
toolbar
|
||||
.css("visibility", "visible")
|
||||
.css("position", "fixed")
|
||||
.css("top", "177px")
|
||||
.css("margin-top", "0");
|
||||
.css("left", "auto")
|
||||
.css("right", "auto")
|
||||
.css("width", tinyMceWidth);
|
||||
} else {
|
||||
toolbar
|
||||
.css("visibility", "visible")
|
||||
.css("position", "absolute")
|
||||
.css("top", "auto")
|
||||
.css("margin-top", "0");
|
||||
.css("left", "")
|
||||
.css("right", "")
|
||||
.css("top", "")
|
||||
.css("width", "");
|
||||
}
|
||||
|
||||
},
|
||||
|
||||
@@ -638,7 +638,11 @@
|
||||
|
||||
.umb-grid .mce-toolbar {
|
||||
border-bottom: 1px solid @gray-7;
|
||||
background-color: white;
|
||||
display: none;
|
||||
|
||||
left: 0;
|
||||
right: 0;
|
||||
}
|
||||
|
||||
.umb-grid .umb-control.-active .mce-toolbar {
|
||||
|
||||
@@ -162,4 +162,5 @@
|
||||
|
||||
.umb-grid .umb-rte {
|
||||
border: 1px solid #d8d7d9;
|
||||
max-width: none;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user