fixed pixels-per-minute thinko in multiday view

This commit is contained in:
vladimir%pobox.com 2005-06-28 21:23:07 +00:00
Родитель 48f306e0d7
Коммит 6b25b72d02
1 изменённых файлов: 5 добавлений и 3 удалений

Просмотреть файл

@ -1414,7 +1414,7 @@
var self = this; var self = this;
this.mResizeHandler = function() { self.onResize(); }; this.mResizeHandler = function() { self.onResize(); };
window.addEventListener("resize", this.mResizeHandler, true); window.addEventListener("resize", this.mResizeHandler, true);
this.reorient(); this.reorient();
]]></constructor> ]]></constructor>
<field name="mTimeoutScheduled">false</field> <field name="mTimeoutScheduled">false</field>
@ -1448,7 +1448,7 @@
self.mLastSize = size; self.mLastSize = size;
var minutes = timebar.endMinute - timebar.startMinute; var minutes = self.mEndMin - self.mStartMin;
var ppm = size / minutes; var ppm = size / minutes;
self.pixelsPerMinute = ppm; self.pixelsPerMinute = ppm;
]]></body> ]]></body>
@ -1876,7 +1876,7 @@
// this should be done using lookupMethod(), see bug 286629 // this should be done using lookupMethod(), see bug 286629
var ret = XULElement.prototype.setAttribute.call (this, aAttr, aVal); var ret = XULElement.prototype.setAttribute.call (this, aAttr, aVal);
if (needsrelayout) if (needsrelayout && !needsreorient)
this.relayout(); this.relayout();
if (needsreorient) if (needsreorient)
@ -1955,6 +1955,8 @@
child = child.nextSibling; child = child.nextSibling;
} }
} }
this.relayout();
]]></body> ]]></body>
</method> </method>