Skip to:
Content
Pages
Categories
Search
Top
Bottom

Dynamically Applied Style Problem

  • Avatar of jcangler
    jcangler
    Participant

    @jcangler

    I can’t for the life of me figure out why this is happening, but when the “What’s New” text box is in focus on the activity page, a dynamically applied style is appended to the element that shoots the textbox off the screen:
    `
    element.style {
    display: inline-block;
    height: 50px;
    }
    `
    This style is only appended if the buddypress template is fitted into the content div of my template. If I remove my theme’s main content div, the style is not appended but the alignment and whatnot is all jacked up.

    I’m using the BP compatibility pack (latest version), and if I disable the javascript, the style is not appended. It’s driving me nuts because I’ve tried to recreate the situation on another test server using the same theme and plugins (all latest versions), but it works fine there.

    Does anyone have any idea on how to figure out what is appending this dynamic style? It is only appended when it’s contained within this one particular div.

    I’m using the latest versions of buddypress and wordpress. Thanks in advance for your help!

Viewing 1 replies (of 1 total)
  • Avatar of Tammie
    Tammie
    Moderator

    @karmatosed

    That’s a style applied from BuddyPress’s JavaScript as it’s meant to ‘grow’ as it’s in focus.

    `jq(“form#whats-new-form textarea”).animate({
    height:’50px’
    });`
    - global.js

    It’s probably good to either keep that or have some indicator in your theme when someone clicks into that area.

Viewing 1 replies (of 1 total)

You must be logged in to reply to this topic.