Permalink
Browse files

fixed jerkiness when moving out of an element

git-svn-id: file:///Users/santep/svn/typegauge@19 9f6b1e68-2402-4d57-9da2-360f75cbc3a5
  • Loading branch information...
196286
196286 committed Dec 19, 2008
1 parent aadcf6a commit aa31d69db0592bf0151e56b196097605e50da48d
Showing with 22 additions and 24 deletions.
  1. +10 −9 src/chrome/content/typegauge.css
  2. +4 −5 src/chrome/content/typegauge.js
  3. +4 −4 src/chrome/content/typegauge.xul
  4. +2 −4 src/install.rdf
  5. +2 −2 tools/build.rb
@@ -5,9 +5,8 @@
}
#typegauge {
- padding: 10px;
+ padding: 10px 15px 6px;
margin: 10px;
- height:40px;
background: rgba(0%, 0%, 0%, 0.8);
-moz-border-radius: 5px;
color:white;
@@ -24,27 +23,29 @@
}
#typegauge dt, #typegauge dd {
- display:table-cell;
- width:30px;
+ display:inline-block;
+ height:20px;
}
#typegauge dt {
color:#e3e3e3;
font: normal 11px Arial,sans-serif;
text-transform:uppercase;
- padding-right:1em;
- line-height:20px;
+ margin-right:20px;
}
#typegauge dd {
color:white;
font: bold 13px Arial,sans-serif;
- padding-right:2em;
width:50px;
- line-height:20px;
+ margin-right:40px;
}
-#tg-tag-value {
+#typegauge dd:last-child {
+ margin-right:0;
+}
+
+#typegauge #tg-tag-value {
font-family: Monaco, monospace !important;
text-transform:lowercase;
}
@@ -8,7 +8,6 @@ TypeGauge = TG = {
onWindowLoad: function() {
TG.panel = document.getElementById('typegauge-panel');
- // TG.updateOutput({tag:'...', size:'...', lineHeight:'...'});
var appcontent = document.getElementById("appcontent");
appcontent.addEventListener("DOMContentLoaded", TG.onPageLoad, true);
@@ -24,7 +23,7 @@ TypeGauge = TG = {
},
startListening: function(page) {
- // TG.updateOutput({tag:'', size:'', lineHeight:''});
+ TG.updateOutput({tag:'', size:'', lineHeight:''});
page.addEventListener("mouseover", this.highlight, false);
window.content.addEventListener("unload", this.stopListening, false);
},
@@ -132,9 +131,9 @@ TypeGauge = TG = {
},
updateOutput: function(output) {
- document.getElementById('tg-tag-value').textContent = output['tag'] ? '<' + output['tag'] + '>' : '';
- document.getElementById('tg-size-value').textContent = output['size'];
- document.getElementById('tg-lineHeight-value').textContent = output['lineHeight'];
+ document.getElementById('tg-tag-value').textContent = output['tag'] ? '<' + output['tag'] + '>' : '\u00A0';
+ document.getElementById('tg-size-value').textContent = output['size'] ? output['size'] : '\u00A0';
+ document.getElementById('tg-lineHeight-value').textContent = output['lineHeight'] ? output['lineHeight'] : '\u00A0';
}
};
@@ -8,11 +8,11 @@
<popupset id="mainPopupSet">
<panel id="typegauge-panel" noautohide="true" align="center">
- <div id="typegauge" width="400">
+ <div id="typegauge" width="100">
<dl id="typegauge-dl">
- <dt>tag</dt><dd id="tg-tag-value"></dd>
- <dt>size</dt><dd id="tg-size-value"> </dd>
- <dt>lineHeight</dt><dd id="tg-lineHeight-value"> </dd>
+ <dt>tag</dt> <dd id="tg-tag-value"></dd>
+ <dt>size</dt> <dd id="tg-size-value"> </dd>
+ <dt>lineHeight</dt> <dd id="tg-lineHeight-value"> </dd>
</dl>
</div>
</panel>
View
@@ -7,13 +7,11 @@
<em:description>Measure Type</em:description>
<em:creator>Pau Santesmasses</em:creator>
<em:homepageURL>http://pau.santesmasses.net/typegauge</em:homepageURL>
- <em:updateURL>http://pau.santesmasses.net/typegauge/releases/update.rdf</em:updateURL>
- <em:updateKey>MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQDcIApHaKUGDevOVtabLUmaSycLqEBSUUJG9h19gJWphSsNrYOkxuHfcXmlcPLozI7EIoQJhnkOKCN4mcTVjB4X3KKz/WdGsX+2ZKfaGPCizyWX4kxJgBF2WLkchuDrszxV2FbW3Cp907tVTy7a6u0x5XIPbntUAUWSb5UuHg5jkwIDAQAB</em:updateKey>
<em:targetApplication>
<Description>
<em:id>{ec8030f7-c20a-464f-9b0e-13a3a9e97384}</em:id>
- <em:minVersion>1.5</em:minVersion>
- <em:maxVersion>3.*</em:maxVersion>
+ <em:minVersion>3.0</em:minVersion>
+ <em:maxVersion>3.0.*</em:maxVersion>
</Description>
</em:targetApplication>
</Description>
View
@@ -22,8 +22,8 @@
<targetApplication>
<r:Description>
<id>{ec8030f7-c20a-464f-9b0e-13a3a9e97384}</id>
- <minVersion>1.5</minVersion>
- <maxVersion>3</maxVersion>
+ <minVersion>3</minVersion>
+ <maxVersion>3.*</maxVersion>
<updateLink>#{uri}#{app_name}.#{version}.xpi</updateLink>
<updateHash>sha1:#{hash}</updateHash>
</r:Description>

0 comments on commit aa31d69

Please sign in to comment.