mirror of
https://github.com/Azornes/Comfyui-LayerForge.git
synced 2026-03-21 20:52:12 -03:00
Implement robust world-based positioning for Blend Mode menu
Redesigned the positioning system for the Blend Mode menu, inspired by the "Custom Output Area" logic. The menu now anchors precisely to the top-right corner of the viewport and stays in place during panning and zooming.
This commit is contained in:
@@ -815,6 +815,8 @@ $el("label.clipboard-switch.mask-switch", {
|
||||
}
|
||||
}, [canvas.canvas]) as HTMLDivElement;
|
||||
|
||||
canvas.canvasContainer = canvasContainer;
|
||||
|
||||
const layersPanelContainer = $el("div.painterLayersPanelContainer", {
|
||||
style: {
|
||||
position: "absolute",
|
||||
|
||||
Reference in New Issue
Block a user