Side navigation
#12246 closed bug (invalid)
Opened August 10, 2012 12:51PM UTC
Closed August 25, 2012 08:50AM UTC
Animate :: Using '+=' or '-='
Reported by: | joao.pinho@freshcloud.net | Owned by: | joao.pinho@freshcloud.net |
---|---|---|---|
Priority: | undecided | Milestone: | None |
Component: | unfiled | Version: | 1.8.0 |
Keywords: | Cc: | ||
Blocked by: | Blocking: |
Description
Hi,
I'm currently experiencing an issue with jquery animate, when
doing the same actions too many times. Here is an example of the executing code:
$('.cbq-layout-main.channel .viewimage').click(function () {
if ($(this).hasClass('sel')) return false;
$(this).addClass('sel').siblings().removeClass('sel');
$('.cbq-layout-main.channel .description').stop().show()
.animate({ opacity: 1 });
$('.cbq-layout-main.channel .dfwp-item .item').stop()
.animate({ height: '+=70px' }, { queue: false });
return false;
});
$('.cbq-layout-main.channel .viewlist').click(function () {
if ($(this).hasClass('sel')) return false;
$(this).addClass('sel').siblings().removeClass('sel');
$('.cbq-layout-main.channel .description').stop()
.css({ opacity: 0 }).hide();
$('.cbq-layout-main.channel .dfwp-item .item').stop()
.animate({ height: '-=70px' }, { queue: false });
return false;
});
The HTML are a couple of divs with title and description, and i'm collapsing to show only the title, and achieve a more compact layout that allows me to show more content.
To make the divs collapse i have two links, the ones of the click event above, and the problem is that when i click repeatedly into collapse and expand for lets say 10 seconds the divs start getting unformatted, like, text instead of staying in its place starts shifting down a little bit out of the div, like this (ASCII IMAGE):
a\\=========================\\a
a\\ \\a
a\\ \\a
a\\ lorei ipsum bla bla bla \\a
a\\ sdasds ds ad sd asd sa \\a
a\\=========================\\a
dsdasdsdsds sd asd sa d
sadsd sad sad asdsd sa
sadsadsadsads dasdsdsad
The text was initially inside the div...
Is this a bug?
Am i doing something wrong?
Please help me..
Best Regards,
João Pinho
Attachments (0)
Change History (2)
Changed August 10, 2012 02:31PM UTC by comment:1
owner: | → joao.pinho@freshcloud.net |
---|---|
status: | new → pending |
Changed August 25, 2012 08:50AM UTC by comment:2
resolution: | → invalid |
---|---|
status: | pending → closed |
Because we get so many tickets, we often need to return them to the initial reporter for more information. If that person does not reply within 14 days, the ticket will automatically be closed, and that has happened in this case. If you still are interested in pursuing this issue, feel free to add a comment with the requested information and we will be happy to reopen the ticket if it is still valid. Thanks!
Thanks for taking the time to contribute to the jQuery project! Please provide a complete reduced test case on jsFiddle to help us assess your ticket.
Additionally, be sure to test against the jQuery Edge version to ensure the issue still exists. To get you started, use this boilerplate: http://jsfiddle.net/FrKyN/. Open the link and click to "Fork" (in the top menu) to get started.