Browse Source

That was easy!

Douglas William Thrift 8 years ago
parent
commit
e26deb58d6
2 changed files with 13 additions and 6 deletions
  1. 12 5
      bootstrap.js
  2. 1 1
      install.rdf

+ 12 - 5
bootstrap.js

@@ -42,24 +42,31 @@
 
 Components.utils.import("resource:///modules/imServices.jsm");
 
-/*let observer = {
+let observer = {
     observe: function(subject, topic, data)
     {
         if (topic != "conversation-loaded")
             return;
 
-        Services.console.logStringMessage(subject);
+        var binding = subject.ownerDocument.getBindingParent(subject);
+
+        if (!binding || !("editor" in binding) || !binding.editor)
+            return;
+
+        var node = binding.editor.parentNode;
+
+        node.height = node.minHeight;
     },
-};*/
+};
 
 function startup(data, reason)
 {
-    //Services.obs.addObserver(observer, "conversation-loaded", false);
+    Services.obs.addObserver(observer, "conversation-loaded", false);
 }
 
 function shutdown(data, reason)
 {
-    //Services.obs.removeObserver(observer, "conversation-loaded");
+    Services.obs.removeObserver(observer, "conversation-loaded");
 }
 
 function install(data, reason) {}

+ 1 - 1
install.rdf

@@ -2,7 +2,7 @@
 <RDF xmlns="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:em="http://www.mozilla.org/2004/em-rdf#">
     <Description about="urn:mozilla:install-manifest">
         <em:id>minimalheightinput@douglasthrift.net</em:id>
-        <em:version>1.0a</em:version>
+        <em:version>1.0</em:version>
         <em:type>2</em:type>
         <!-- Instantbird -->
         <em:targetApplication>