diff --git a/Radzen.Blazor/wwwroot/Radzen.Blazor.js b/Radzen.Blazor/wwwroot/Radzen.Blazor.js index afb3892eaa1..791a28a023b 100644 --- a/Radzen.Blazor/wwwroot/Radzen.Blazor.js +++ b/Radzen.Blazor/wwwroot/Radzen.Blazor.js @@ -1132,8 +1132,8 @@ window.Radzen = { popup.style.display = 'block'; var rect = popup.getBoundingClientRect(); - rect.width = rect.width + 20; - rect.height = rect.height + 20; + rect.width = x ? rect.width + 20 : rect.width; + rect.height = y ? rect.height + 20 : rect.height; var smartPosition = !position || position == 'bottom';