mirror of
https://github.com/node-red/node-red.git
synced 2023-10-10 13:36:53 +02:00
Merge branch 'master' into dev
This commit is contained in:
commit
5ba0588c7b
@ -244,7 +244,7 @@ module.exports = {
|
|||||||
)
|
)
|
||||||
themeContext.page.scripts = scriptFiles.concat(themeContext.page.scripts || [])
|
themeContext.page.scripts = scriptFiles.concat(themeContext.page.scripts || [])
|
||||||
theme.page = theme.page || {_:{}}
|
theme.page = theme.page || {_:{}}
|
||||||
theme.page._.scripts = cssFiles.concat(theme.page._.scripts || [])
|
theme.page._.scripts = scriptFiles.concat(theme.page._.scripts || [])
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
activeThemeInitialised = true;
|
activeThemeInitialised = true;
|
||||||
|
BIN
packages/node_modules/@node-red/editor-client/src/images/grip-horizontal.png
vendored
Normal file
BIN
packages/node_modules/@node-red/editor-client/src/images/grip-horizontal.png
vendored
Normal file
Binary file not shown.
After Width: | Height: | Size: 90 B |
@ -2369,6 +2369,7 @@ RED.view = (function() {
|
|||||||
var textDimensionPlaceholder = {};
|
var textDimensionPlaceholder = {};
|
||||||
var textDimensionCache = {};
|
var textDimensionCache = {};
|
||||||
function calculateTextDimensions(str,className) {
|
function calculateTextDimensions(str,className) {
|
||||||
|
var cacheKey = "!"+str;
|
||||||
if (!textDimensionPlaceholder[className]) {
|
if (!textDimensionPlaceholder[className]) {
|
||||||
textDimensionPlaceholder[className] = document.createElement("span");
|
textDimensionPlaceholder[className] = document.createElement("span");
|
||||||
textDimensionPlaceholder[className].className = className;
|
textDimensionPlaceholder[className].className = className;
|
||||||
@ -2377,15 +2378,15 @@ RED.view = (function() {
|
|||||||
document.getElementById("red-ui-editor").appendChild(textDimensionPlaceholder[className]);
|
document.getElementById("red-ui-editor").appendChild(textDimensionPlaceholder[className]);
|
||||||
textDimensionCache[className] = {};
|
textDimensionCache[className] = {};
|
||||||
} else {
|
} else {
|
||||||
if (textDimensionCache[className][str]) {
|
if (textDimensionCache[className][cacheKey]) {
|
||||||
return textDimensionCache[className][str]
|
return textDimensionCache[className][cacheKey]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
textDimensionPlaceholder[className].textContent = (str||"");
|
textDimensionPlaceholder[className].textContent = (str||"");
|
||||||
var w = textDimensionPlaceholder[className].offsetWidth;
|
var w = textDimensionPlaceholder[className].offsetWidth;
|
||||||
var h = textDimensionPlaceholder[className].offsetHeight;
|
var h = textDimensionPlaceholder[className].offsetHeight;
|
||||||
textDimensionCache[className][str] = [w,h];
|
textDimensionCache[className][cacheKey] = [w,h];
|
||||||
return textDimensionCache[className][str];
|
return textDimensionCache[className][cacheKey];
|
||||||
}
|
}
|
||||||
|
|
||||||
function convertLineBreakCharacter(str) {
|
function convertLineBreakCharacter(str) {
|
||||||
|
@ -40,7 +40,7 @@
|
|||||||
height: 7px;
|
height: 7px;
|
||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
cursor: ns-resize;
|
cursor: ns-resize;
|
||||||
background: $primary-background url(images/grip.png) no-repeat 50% 50%;
|
background: $primary-background url(images/grip-horizontal.png) no-repeat 50% 50%;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ -70,5 +70,6 @@
|
|||||||
width: 7px;
|
width: 7px;
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
cursor: ew-resize;
|
cursor: ew-resize;
|
||||||
|
background: $primary-background url(images/grip.png) no-repeat 50% 50%;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user