OLD | NEW |
1 <html> | 1 <html> |
2 <head> | 2 <head> |
3 | 3 |
4 <script type="text/javascript"> | 4 <script type="text/javascript"> |
5 | 5 |
6 function changeColWidthUsingWidth() | 6 function changeColWidthUsingWidth() |
7 { | 7 { |
8 var column = document.getElementById("col"); | 8 var column = document.getElementById("col"); |
9 column.width = "500px"; | 9 column.width = "500px"; |
10 } | 10 } |
(...skipping 18 matching lines...) Expand all Loading... |
29 <td>col 1 row 2</td> | 29 <td>col 1 row 2</td> |
30 <td>col 2 row 2</td> | 30 <td>col 2 row 2</td> |
31 <td>col 3 row 3</td> | 31 <td>col 3 row 3</td> |
32 </tr> | 32 </tr> |
33 </tbody> | 33 </tbody> |
34 </table> | 34 </table> |
35 <button onclick="changeColWidthUsingWidth();">Click me to test manually. The
first column should grow to 500px.</button> | 35 <button onclick="changeColWidthUsingWidth();">Click me to test manually. The
first column should grow to 500px.</button> |
36 | 36 |
37 <script> | 37 <script> |
38 if (window.eventSender) { | 38 if (window.eventSender) { |
| 39 // Mouse events only work after an initial layout |
| 40 document.body.offsetLeft; |
39 eventSender.mouseMoveTo(50, 75); | 41 eventSender.mouseMoveTo(50, 75); |
40 eventSender.mouseDown(); | 42 eventSender.mouseDown(); |
41 eventSender.mouseUp(); | 43 eventSender.mouseUp(); |
42 } | 44 } |
43 </script> | 45 </script> |
44 | 46 |
45 </body> | 47 </body> |
46 </html> | 48 </html> |
OLD | NEW |