From 5f8062ceca2cf4d1c365ba777e3080be8604e4e5 Mon Sep 17 00:00:00 2001 From: "s.samko" Date: Tue, 15 Oct 2024 11:04:50 +0100 Subject: [PATCH] Fix #10421 - Studio | Layout Editor CSS broken --- modules/ModuleBuilder/javascript/studio2.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/ModuleBuilder/javascript/studio2.js b/modules/ModuleBuilder/javascript/studio2.js index 4767e10c01c..430d8357219 100755 --- a/modules/ModuleBuilder/javascript/studio2.js +++ b/modules/ModuleBuilder/javascript/studio2.js @@ -193,7 +193,7 @@ Studio2 = { if (!Dom.get('panels')) return; var body = document.getElementById('mbtabs'); - var targetHeight = body.clientHeight - (Dom.getY('panels') - Dom.getY(body)) - 32; + var targetHeight = body.clientHeight - (Dom.getY('toolbox') - Dom.getY(body)) - 32; if (Studio2.isIE) targetHeight -= 10; Dom.setStyle('panels', "height", targetHeight + "px"); Dom.setStyle('panels', "width" , ((Studio2.fieldwidth * 2) + 112) + "px");