From 52945ac7f7afb80e9d695308e979c308ed0ff452 Mon Sep 17 00:00:00 2001 From: beu Date: Sat, 13 Jul 2024 23:06:49 +0200 Subject: [PATCH] fix tooltip function --- core/Maps/DirectoryBrowser.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/Maps/DirectoryBrowser.php b/core/Maps/DirectoryBrowser.php index f41180ae..bcb2e60e 100644 --- a/core/Maps/DirectoryBrowser.php +++ b/core/Maps/DirectoryBrowser.php @@ -140,7 +140,7 @@ class DirectoryBrowser implements ManialinkPageAnswerListener { $height = $this->maniaControl->getManialinkManager()->getStyleManager()->getListWidgetsHeight(); $innerWidth = $width - 2; - $innerHeigth = $height - 20; + $innerHeigth = $height - 22; $lineHeight = 4.; @@ -181,7 +181,7 @@ class DirectoryBrowser implements ManialinkPageAnswerListener { $tooltipLabel = new Label(); $repositionnedFrame->addChild($tooltipLabel); - $tooltipLabel->setPosition(3, $height + 5); + $tooltipLabel->setPosition(3, $height * -1 + 10); $tooltipLabel->setSize($width * 0.8, 5); $tooltipLabel->setHorizontalAlign($tooltipLabel::LEFT); $tooltipLabel->setTextSize(1);