Support Forum

Weird Poll Pop-Up

KI Kilomoana
Kilomoana
Member

Hi there,

when I click the “Poll” Button, the Pop-Up appears around -3.700px away from top. So it is displayed far under my theme.

Is there a way to fix/change this.

Greetings

Alex

20 Answers

New Answer

MP Mr Papa
Mr Papa
Member

do you have a screenshot? or better yet a link where I can try – if you are letting guests vote… sounds like your theme is doing some funky z-index stuff…

KI Kilomoana
Kilomoana
Member

It is just on a test Installation, i’ll send you login credentials and a direct link to the forum.

MP Mr Papa
Mr Papa
Member

there is some odd layering going on with your pages… is it still in development?  I dont think any pages are really displaying the way you want?  whats with the big empty green box at the top that fills 3/4 of the pages?  and sidebars show below the header… and the tree looking dude displaying between the big green box and the forum?  one has to scroll almost two pages just to see the forum…  sorry, not trying to be critical, but seems like some general layout issues…

and for some reason its throwing off jquery ui…  I dont see what you said, for me the poll opens up at the bottom of the page, mostly off screen…  absolute positioning but 2100 px from top…  jquery ui dialog stuff is trying to center the dialog in the page and obviously getting confused… so was wondering the status of the theme…

KI Kilomoana
Kilomoana
Member

The Box is the slider and the tree is for decoration. You can see a the full theme at grow-together.de.

MP Mr Papa
Mr Papa
Member

oh, you just havent filled the slider yet… but having that on every page seems odd… so you always have to scroll to see any content… but no worries, your site, your choices! ;)

still something in the theme the way its layering and combining absolute and relative positioning is throwing off jquery ui… but cannot really debug the js on your site because you are using the minimized scripts… if you wanted to add:

define(‘SP_SCRIPTS_DEBUG’, true);

to your wp config file, I could try to investigate further…

MP Mr Papa
Mr Papa
Member

afraid I am at a bit of a loss as to what is going on. After debugging it though, it is the jquery ui js that comes with wp that is calculating the position. It should be in the center of the screen… and it tries to handle collisions during those calculations… not sure what is driving it to be driven down low… but since you said you saw it high (-3px vs 3000px for me), there must be something confusing it..

you are running something called ubermenu plugin but are you actually using it? I dont seem to see it…

also, as a test, could you try disabling your other plugins and see if there is any change? just wondering if some sort of conflict – though no errors thrown..

KI Kilomoana
Kilomoana
Member

Hmm I just disabled the ubermenu, used it on another theme. But no changes. I will look over the gerneral styling of the theme, I think some of my containers should not have been set to relative position.

Here is a Screenshot with the values from Firebug. Which reference is the script using for calculating the position? A specific container or the viewport?simplepress.jpg

MP Mr Papa
Mr Papa
Member

jquery ui uses the window… for reference: http://api.jqueryui.com/dialog/#option-position

we are passing it ‘center for the position which should be the center of the window…

I had to step away for bit, but do plan to look at some more later today…

KI Kilomoana
Kilomoana
Member

Hmm, I will try to turn off all .js used by the theme, maybe there is something that causes the collision.

Turned off everything, it is now 2891.43px from top. So it is going up :-D

Now I tried to turn off mostly everything. Even the Themes CSS Files and the WordPress js via Firebug with no change.

MP Mr Papa
Mr Papa
Member

but this is with same wp theme, right?  just to be sure, if you switch to a default wp theme (ie twentytwelve), lets make sure that is right…  then assuming so, we can work this theme…

night need Andy’s help on this one since he is the dialog guy, but he is on vacation until next week so will see what I can do…

KI Kilomoana
Kilomoana
Member

Ok, I switched to the Std. Theme and it is displaying correctly. So, the issue must be somewhere in my theme.

MP Mr Papa
Mr Papa
Member

yeah, what I suspected… would like to solve it though… something, I mentioned potentially the old layering of absolute/relative/fixed positioning… I would think that a large, standard library like jquery ui would be able to handle it… I plan to try to look at it some more today… and barring success would still like to get Andy to look at it since he did our jquery ui dialogs – but he wont be back until next week…

KI Kilomoana
Kilomoana
Member

Tried a few things, but with no success. So I will wait, until Andy is back.