From 31345800078791e74c8935936c8e7edafb2a2797 Mon Sep 17 00:00:00 2001 From: Vjacheslav Trushkin Date: Wed, 23 Oct 2013 23:46:29 +0300 Subject: [PATCH] [ticket/11956] More fixes for responsive minitabs PHPBB3-11956 --- phpBB/styles/prosilver/template/forum_fn.js | 3 ++- phpBB/styles/prosilver/theme/cp.css | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/phpBB/styles/prosilver/template/forum_fn.js b/phpBB/styles/prosilver/template/forum_fn.js index 9895510a1b..0da3c77d53 100644 --- a/phpBB/styles/prosilver/template/forum_fn.js +++ b/phpBB/styles/prosilver/template/forum_fn.js @@ -934,7 +934,8 @@ function parse_document(container) responsive = false; links.each(function() { - maxHeight = Math.max(maxHeight, $(this).outerHeight(true)); + var link = $(this); + maxHeight = Math.max(maxHeight, Math.max(link.outerHeight(true), link.parent().outerHeight(true))); }) function check() { diff --git a/phpBB/styles/prosilver/theme/cp.css b/phpBB/styles/prosilver/theme/cp.css index 71b63a9707..2003fef954 100644 --- a/phpBB/styles/prosilver/theme/cp.css +++ b/phpBB/styles/prosilver/theme/cp.css @@ -105,6 +105,7 @@ ul.cplist { .tabs-container #minitabs { float: right; margin-top: 19px; + max-width: 50%; } .tabs-container:after {