<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -548,7 +548,7 @@ function FlexImage(elmBox, src, dialogPanel){
 }
 
 FlexImage.prototype = {
-	fit : function(direction){
+	fit : function(dir){
 		// &#30011;&#20687;&#20197;&#22806;&#12398;&#12521;&#12505;&#12523;&#12420;&#20313;&#30333;&#12394;&#12393;&#12398;&#39640;&#12373;&#12434;&#21462;&#24471;
 		var lh = (this.elmVbox.boxObject.height - parseInt(this.elmImage.style.maxHeight)) || 0;
 		
@@ -563,7 +563,11 @@ FlexImage.prototype = {
 		var nw = this.naturalWidth;
 		var nh = this.naturalHeight;
 		
-		var ratio = Math.min(bh/nh, bw/nw, 1);
+		// &#19978;&#19979;&#24038;&#21491;&#12434;&#25524;&#12435;&#12391;&#12522;&#12469;&#12452;&#12474;&#12434;&#34892;&#12387;&#12383;&#22580;&#21512;&#12399;&#12289;&#24120;&#12395;&#12381;&#12385;&#12425;&#12434;&#20778;&#20808;&#12377;&#12427;
+		var ratio = Math.min(1,
+			(dir=='w' || dir=='e')? bw/nw : 
+			(dir=='n' || dir=='s')? bh/nh : Math.min(bh/nh, bw/nw));
+		
 		var width = Math.ceil(nw * ratio);
 		var height = Math.ceil(nh * ratio);
 		</diff>
      <filename>xpi/chrome/content/quickPostForm.xul</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>4d2d4d4e9f5ddd307908c2488b73b7aca3ea84b0</id>
    </parent>
  </parents>
  <author>
    <name>to</name>
    <email>ryutaro.kamitsu@gmail.com</email>
  </author>
  <url>http://github.com/to/tombloo/commit/fce403757a5e418ac096e7155e25050d2364ad58</url>
  <id>fce403757a5e418ac096e7155e25050d2364ad58</id>
  <committed-date>2008-09-14T07:10:25-07:00</committed-date>
  <authored-date>2008-09-14T07:10:25-07:00</authored-date>
  <message> * photo&#12522;&#12469;&#12452;&#12474;&#12434;&#20351;&#12356;&#12420;&#12377;&#12367;(&#19978;&#19979;&#24038;&#21491;&#26041;&#21521;&#12398;&#21205;&#20316;&#12434;&#25913;&#21892;)</message>
  <tree>c121e92db182bb25f9a10741fe54277ba741be4f</tree>
  <committer>
    <name>to</name>
    <email>ryutaro.kamitsu@gmail.com</email>
  </committer>
</commit>
