Fixing bug with main view not refreshing when you click on grippy.

This commit is contained in:
mikep%oeone.com 2002-09-11 18:25:18 +00:00
parent fa93ee7361
commit 454159842a
2 changed files with 16 additions and 1 deletions

View File

@ -419,7 +419,7 @@
</vbox>
<splitter id="calendar-view-splitter" collapse="before" persist="state"
class="chromeclass-extrachrome sidebar-splitter" orient="vertical" onmouseup="gCalendarWindow.doResize();">
class="chromeclass-extrachrome sidebar-splitter" orient="vertical" onmouseup="setTimeout( 'gCalendarWindow.onMouseUpCalendarViewSplitter()', 1 );">
<grippy class="sidebar-splitter-grippy"/>
</splitter>

View File

@ -487,6 +487,21 @@ CalendarWindow.prototype.compareNumbers = function calWin_compareNumbers(a, b) {
return a - b
}
CalendarWindow.prototype.onMouseUpCalendarViewSplitter = function calWinOnMouseUpCalendarViewSplitter()
{
//check if calendar-view-splitter is collapsed
if( document.getElementById( "bottom-events-box" ).getAttribute( "collapsed" ) != "true" )
{
//do this because if they started with it collapsed, its not showing anything right now.
//in a setTimeout to give the pull down menu time to draw.
setTimeout( "refreshEventTree( false );", 10 );
}
this.doResize();
}
/** PUBLIC
* The resize handler, used to set the size of the views so they fit the screen.
*/