mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-12 21:05:36 +00:00
Fixing bug with main view not refreshing when you click on grippy.
This commit is contained in:
parent
fa93ee7361
commit
454159842a
@ -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>
|
||||
|
||||
|
@ -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.
|
||||
*/
|
||||
|
Loading…
Reference in New Issue
Block a user