TinyPortal

Development => Support => Topic started by: SeverityGaming on October 04, 2019, 04:00:09 AM

Title: Admin menu shifts unexpectedly.
Post by: SeverityGaming on October 04, 2019, 04:00:09 AM
Link to my forum: https://www(dot)dev(dot)severitygaming(dot)com / https://www(dot)severitygaming(dot)com
SMF version: 2.0.15
TP version: 1.6.4
Default Forum Language: English
Theme name and version: Darkec - https://smftricks(dot)com/index(dot)php?topic=1616(dot)0
Browser Name and Version: All. (Mainly Chrome Though)
Related Error messages: No error messages, just unexplained behavior.
Mods installed: PDF attached to the thread.

When I go to the admin menu, and hit the dropdown to nav through the various options, the whole navbar shifts and adds a ton of whitespace above it, it doesnt reset until you load another page, and it'll happen again.

It does not appear to do the same thing in the default SMF theme, but it's a different style of menu. Here's a video of what I'm talking about. https://:youtu(dot)be/PgZde2auMIo
Title: Re: Admin menu shifts unexpectedly.
Post by: @rjen on October 04, 2019, 06:23:54 AM
https://youtu.be/PgZde2auMIo

What makes you think this is related to TinyPortal? In you video I only see an admin_menu div taking up place, due to a min-height setting of 2em  which is in index.css

This is not an element in TP, and index.css is not changed by TP, so it seems to be a theme issue. What theme are you using? Since you say it is a paid theme, you may need to ask the theme author for support...
Title: Re: Admin menu shifts unexpectedly.
Post by: SeverityGaming on October 04, 2019, 02:07:47 PM
If I uninstall tinyportal, it doesn't happen. That's all I have to work off of right now.

Will happily go to the theme author and ask for support from them as well. But I have a feeling that they will probably tell me to come back here since it only starts happening once TP is added to the mix. :( #supportlife
Title: Re: Admin menu shifts unexpectedly.
Post by: @rjen on October 04, 2019, 02:27:26 PM
Since we do not have access to the section that you are showing and the theme is paid ,  the only way to analyse it would be access to your forum. If you can pm me an admin account I can have a look...
Title: Re: Admin menu shifts unexpectedly.
Post by: lurkalot on October 04, 2019, 06:15:08 PM
SeverityGaming, I have increased your post count on here now, so you can PM etc without problems.
Title: Re: Admin menu shifts unexpectedly.
Post by: @rjen on October 04, 2019, 06:29:43 PM
I just had a look at your admin section and I see the symptom, but I cannot see the cause: it seems that when accessing the admin section to start it is fine, and at the moment the dropmenu shows, the ul and li elements suddenly 'drop'. With refreshing all is fine again.

I checked all css elements but I do not see any Tinyportal css kicking in, so it is not something we can fix.

Since TinyPortal does not show this behavour on other themes I can only conclude that 'something' in your theme reacts to Tinyportal placing a DIV element (maincontainer or centercontainer) around the admin page.

I wish I could pinpoint what it is, but I cannot, so the only advice I can give you is to check if the theme author has some wisdom for you...
Title: Re: Admin menu shifts unexpectedly.
Post by: SeverityGaming on October 04, 2019, 06:32:41 PM
Quote from: @rjen on October 04, 2019, 06:29:43 PM
I just had a look at your admin section and I see the symptom, but I cannot see the cause: it seems that when accessing the admin section to start it is fine, and at the moment the dropmenu shows, the ul and li elements suddenly 'drop'. With refreshing all is fine again.

I checked all css elements but I do not see any Tinyportal css kicking in, so it is not something we can fix.

Since TinyPortal does not show this behavour on other themes I can only conclude that 'something' in your theme reacts to Tinyportal placing a DIV element (maincontainer or centercontainer) around the admin page.

I wish I could pinpoint what it is, but I cannot, so the only advice I can give you is to check if the theme author has some wisdom for you...

I appreciate you taking a look! :) If I figure it out, I'll post back here with details.
Title: Re: Admin menu shifts unexpectedly.
Post by: tino on October 04, 2019, 08:22:25 PM
Do you have some access credentials you can share with me? I might be able to find the cause, although I doubt it.
Title: Re: Admin menu shifts unexpectedly.
Post by: SeverityGaming on October 08, 2019, 01:02:16 PM
passed them along. When navigating around, I see that this also happens with the menu when viewing user profiles as well.
Title: Re: Admin menu shifts unexpectedly.
Post by: SeverityGaming on October 09, 2019, 05:16:58 AM
After working with the Theme developer. This ended up being the solution.

Quote from: Diego Andrés
Right so no clue how TP is breaking it but the float attribute is usually unreliable for lists anyway.

Just add this at the end of the index.css should fix it
.nav-pills>li {
float: none !important;
display: inline;
}