| OLD | NEW |
| (Empty) | |
| 1 <html> |
| 2 <head> |
| 3 <style> |
| 4 |
| 5 body { |
| 6 -webkit-box-orient:vertical; |
| 7 -webkit-box-direction:normal; |
| 8 } |
| 9 |
| 10 body { |
| 11 width: 100px; |
| 12 } |
| 13 |
| 14 .toolstrip, .toolstrip-content { |
| 15 -webkit-box-orient: horizonal; |
| 16 white-space:nowrap; |
| 17 overflow: hidden; |
| 18 margin:0; |
| 19 padding:0; |
| 20 width: 100%; |
| 21 } |
| 22 |
| 23 .toolstrip { |
| 24 height: 23px; |
| 25 -webkit-box-align: center; |
| 26 border: 1px solid grey; |
| 27 } |
| 28 |
| 29 |
| 30 |
| 31 .toolstrip-content { |
| 32 -webkit-box-flex: 1; |
| 33 background-color: white; |
| 34 color: black; |
| 35 } |
| 36 |
| 37 </style> |
| 38 <script> |
| 39 var collapsed = true; |
| 40 |
| 41 function toggle() { |
| 42 if (collapsed) { |
| 43 chrome.toolstrip.expand({ height: 400 }, function() { |
| 44 document.getElementById('content').style.display = "-webkit-box"; |
| 45 collapsed = false; |
| 46 }); |
| 47 } else { |
| 48 chrome.toolstrip.collapse(undefined, function() { |
| 49 document.getElementById('content').style.display = "none"; |
| 50 collapsed = true; |
| 51 }); |
| 52 } |
| 53 } |
| 54 </script> |
| 55 </head> |
| 56 <body> |
| 57 |
| 58 <div id="content" style="display:none" class="toolstrip-content"> |
| 59 Content |
| 60 </div> |
| 61 <div onclick="toggle();" class="toolstrip"> |
| 62 Toolstrip |
| 63 </div> |
| 64 |
| 65 </body> |
| 66 </html> |
| 67 |
| OLD | NEW |