Bug Tracker

Modify

Ticket #10100 (closed bug: invalid)

Opened 21 months ago

Last modified 21 months ago

After resize firefox with ctrl+ the width calculation fail.

Reported by: szetamas@… Owned by: szetamas@…
Priority: low Milestone: None
Component: misc Version: 1.6.2
Keywords: Cc:
Blocking: Blocked by:

Description

Firefox 6.0, Jquery 1.6.2 Here is the example. Load this html, and use ctrl+ (after ctrl-). The calculated width wrong. (checked with firebug)

<!DOCTYPE html PUBLIC "-W3CDTD XHTML 1.0 TransitionalEN" " http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns=" http://www.w3.org/1999/xhtml"> <head>

<title>Wrong width demo</title> <script type="text/javascript" src=" http://ajax.googleapis.com/ajax/libs/jquery/1.6.2/jquery.min.js"></script> <script type="text/javascript">

$(document).ready(function() {

debugJqueryTableWidths(); window.onresize = function(event) {

debugJqueryTableWidths();

}

});

function debugJqueryTableWidths() {

var widths = new Array(); $('#testTable').find('tr:first').find('td').each(function() {

widths.push($(this).width());

}) log(widths);

} var log = function(message) {

var $debug = $("#debugdiv"); if ($debug.length == 0) {

$("body").append("<div id='debugdiv'/>"); $debug = $("#debugdiv");

} $debug.append(message + "<br/>");

};

</script>

<style type="text/css">

table td, table th {

border: 1px solid black;

}

</style>

</head> <body>

Use Ctrl+ and Ctrl- and after you see the new calculated widths of table. These ar wrong with jquery 1.6.2, in firefox. <table id="testTable">

<tr>

<td>test</td> <td>testtest</td>

</tr>

</table>

</body> </html>

Change History

comment:1 Changed 21 months ago by addyosmani

  • Owner set to szetamas@…
  • Priority changed from undecided to low
  • Status changed from new to pending
  • Component changed from unfiled to misc

Thanks for submitting a ticket to the jQuery bug tracker! Can you please reduce this test case further and post it on jsFiddle.net?

comment:2 Changed 21 months ago by trac-o-bot

  • Status changed from pending to closed
  • Resolution set to invalid

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!

Please follow the  bug reporting guidlines and use  jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.

View

Add a comment

Modify Ticket

Action
as closed
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.