javascript - Text breaks inside slidetoggle JS element -


i have problem on website http://riskby.com/features/

if scroll down bit, , click on myriskby menu-element, text looks this:

text breaks after scroll in slidetoggle-element

here js:

;(function ($) {     $("#text-6").css({         "display": "none"     });     $('#menu-item-990 a').click(function (event) {         $('#text-6').slidetoggle("fast");     });     $('#text-6').click(function (e) {         e.stoppropagation();     });     $(document).click(function () {         $('#text-6').slideup();     });     $(window).scroll(function () {          var = 1;         var pos = $(window).scrolltop();         if (pos > a) {             $("#text-6").css({                 position: 'fixed',                 top: '45px'             });         } else {             $("#text-6").css({                 position: 'fixed',                 top: '89px'             });         }     }); })(jquery); 

can prevent happening somehow?

status far: still no solution found this. text-breaking happens when scroll down bit first, clicking on myriskby... wrong js maybe? every answer appreciated! thanks!

fiddle: http://jsfiddle.net/mediabird/m186z4t7/1/

alright, found solution:

change position fixed absolute. relatively simple ;). works on computer now.

hope can else in future.


Comments

Popular posts from this blog

Magento/PHP - Get phones on all members in a customer group -

php - .htaccess mod_rewrite for dynamic url which has domain names -

Website Login Issue developed in magento -