0

I have a fairly complex Joomla build, the layout of which has become a bit messed up and I'm trying to figure out why.

The style attribute of an element is being changed by javascript (min-height is being added to one element and width to another).

This might be a long shot but is there any way to find out which piece of code is causing this to happen?

1
  • hopefully there is a better way, but couldn't you search your JS for style.minHeight and add a unique log (including function name and impacted element) to each time it's found...then watch your log as the page loads and you'll be able to see which function is touching your element Commented Jan 15, 2013 at 14:57

1 Answer 1

1

Using Chrome:

  1. open the page
  2. open the console (ctrl + shift + j on windows)
  3. find the element
  4. right-click » Break on... » Attributes modifications
  5. reload the page
  6. hope the best ;)
Sign up to request clarification or add additional context in comments.

1 Comment

@Mr_Chimp Happy to hear! ;)

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.