From 6fda42f014f06fc75dd71b85118b81445c09ddf9 Mon Sep 17 00:00:00 2001 From: Alexei Anoshenko <2277098+anoshenko@users.noreply.github.com> Date: Sun, 30 Aug 2026 11:39:37 +0300 Subject: [PATCH] Fixing --- app_styles.css | 4 ++++ popup.go | 13 ++++++------- 2 files changed, 10 insertions(+), 7 deletions(-) diff --git a/app_styles.css b/app_styles.css index 2ab76d8..696a8c2 100644 --- a/app_styles.css +++ b/app_styles.css @@ -92,6 +92,10 @@ ul:focus { bottom: 0px; right: 0px; left: 0px; + max-width: 100%; + max-height: 100%; + margin: 0; + padding: 0; } .ruiTooltipLayer { diff --git a/popup.go b/popup.go index cdf7f61..a99b0cd 100644 --- a/popup.go +++ b/popup.go @@ -1462,15 +1462,17 @@ func (popup *popupData) createLayerView() { popup.popupView = NewGridLayout(session, params) layerParams := Params{ - Style: popupLayerID, - MaxWidth: Percent(100), - MaxHeight: Percent(100), + Width: Percent(100), + Height: Percent(100), + Margin: Px(0), CellWidth: popup.layerCellWidth(), CellHeight: popup.layerCellHeight(), } if margin, ok := getBounds(popup, Margin, session); ok { layerParams[Padding] = margin + } else { + layerParams[Padding] = Px(0) } if location := popup.arrowType(); location != NoneArrow { @@ -1486,10 +1488,7 @@ func (popup *popupData) createLayerView() { popup.layerContentView = NewGridLayout(session, layerParams) backgroundParams := Params{ - Width: Percent(100), - Height: Percent(100), - Margin: Px(0), - Padding: Px(0), + Style: popupLayerID, Content: []View{popup.layerContentView}, }