Viewing 15 replies - 1 through 15 (of 16 total)
  • Plugin Author Janis Elsts

    (@whiteshadow)

    What browser and WordPress version are you using? I tested the plugin with the latest versions of IE, Opera and Chrome and didn’t notice any problems.

    Thread Starter Hassan

    (@hassanhamm)

    I’ve tested this in latest versions of both Firefox and Chrome. WP 3.5.1
    Screenshot: https://i.imgur.com/L2NN2Lz.jpg?1

    Plugin Author Janis Elsts

    (@whiteshadow)

    I just (re-)tested it in Firefox 20.0 and Chrome 26.0.1410.43 and the icon selector still looks fine on my end.

    Maybe there’s another factor at work here, like a plugin conflict. Try temporarily deactivating other plugins and see if it fixes the problem. Also, check your JavaScript console for error messages while on the menu editor page.

    Thread Starter Hassan

    (@hassanhamm)

    Deactivated all plugins (except AME of course) and switched to default theme– still having this issue. Also, there are no errors in the console. Not exactly sure what’s causing this.

    Plugin Author Janis Elsts

    (@whiteshadow)

    Sorry, I’m drawing a blank here as well.

    Do you have any web development experience? Maybe you could try looking at the selection box in Firefox dev tools (i.e. “Inspect element”) and see if you can figure out why the box contents get pushed down to the bottom of the page like that. I’m guessing that the upper-left corner is in the right place, but the element height is messed up for some reason.

    At least that’s what I would do if I had access to the site.

    Thread Starter Hassan

    (@hassanhamm)

    Janis, that’s one of the first things I did; I’m a web designer/developer ??

    However, I did not figure it out at first. But I just tried again and noticed that there is inline CSS styles applied to the #ws_icon_selector div: position: relative; top: 588px; left: 121px;

    If I change the position from relative to absolute, the selection box returns to its normal place.

    Still unsure what’s the cause :\

    Plugin Author Janis Elsts

    (@whiteshadow)

    Those inline styles are set by the $.position() utility function that I use to position the selection box below the icon button. Sounds like it produces incorrect results in your case. Maybe an old version of jQuery / jQuery UI is being loaded for some reason (e.g. failed upgrade)?

    Interestingly, on my sites the “top” property is always negative. For example: “position: relative; top: -770px; left: 119px;”. What happens if you flip the sign instead of changing it to “position: absolute”?

    Thread Starter Hassan

    (@hassanhamm)

    Not quite sure what you mean by “flip the sign”

    Plugin Author Janis Elsts

    (@whiteshadow)

    As in, change the value of the “top” property from positive to negative.

    Thread Starter Hassan

    (@hassanhamm)

    That still messes up the position. Not helpful.

    Plugin Author Janis Elsts

    (@whiteshadow)

    Lets see if setting position to absolute in the stylesheet helps fix the problem. As far as I can tell, jQuery will not change it to relative if it is already explicitly specified, and everything still seems to work fine on the test site.

    Try the development version.

    Thread Starter Hassan

    (@hassanhamm)

    Oh, yeah. That works!

    Thread Starter Hassan

    (@hassanhamm)

    Hey, Janis. So, aren’t you releasing an updated version with this fix?

    Plugin Author Janis Elsts

    (@whiteshadow)

    I certainly will. I guess I’m just somewhat biased against releasing a whole new version for one small bugfix, so I’ve been holding off on it.

    Thread Starter Hassan

    (@hassanhamm)

    Heh, yeah I know. Just make sure you shove in more cool features as well in the next big awesome update ??

Viewing 15 replies - 1 through 15 (of 16 total)
  • The topic ‘UI bug when changing menu icon’ is closed to new replies.