From ad2685624cf233456623c5fa34083412df53873c Mon Sep 17 00:00:00 2001 From: dec05eba Date: Thu, 16 Jun 2022 14:43:20 +0200 Subject: Soundcloud: fix title and download link not updating when changing video, fix text y offset after mgl update --- src/Tabs.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/Tabs.cpp') diff --git a/src/Tabs.cpp b/src/Tabs.cpp index 095a62a..a5c371a 100644 --- a/src/Tabs.cpp +++ b/src/Tabs.cpp @@ -102,7 +102,7 @@ namespace QuickMedia { const int num_visible_tabs = std::min((int)tabs.size(), std::max(1, (int)(width / tab_min_width))); width_per_tab = floor(width / num_visible_tabs); - const float tab_text_y = floor(pos.y + tab_height*0.5f - tab_text_size); + const float tab_text_y = floor(pos.y + tab_height*0.5f - tab_text_size*0.7f); tab_background_width = floor(width_per_tab - tab_margin_x*2.0f); background.set_size(mgl::vec2f(tab_background_width, tab_height)); -- cgit v1.2.3