зеркало из https://github.com/mozilla/pjs.git
Use new CNavCenterScroller and tell it to adjust the scroll bar when the column headers appear or disappear.
This commit is contained in:
Родитель
d3bcc12650
Коммит
7005ee67fd
|
@ -39,6 +39,7 @@
|
||||||
#include "CRDFCoordinator.h"
|
#include "CRDFCoordinator.h"
|
||||||
|
|
||||||
#include "CHyperTreeFlexTable.h"
|
#include "CHyperTreeFlexTable.h"
|
||||||
|
#include "CNavCenterScroller.h"
|
||||||
#include "CNavCenterTitle.h"
|
#include "CNavCenterTitle.h"
|
||||||
#include "UGraphicGizmos.h"
|
#include "UGraphicGizmos.h"
|
||||||
|
|
||||||
|
@ -182,6 +183,10 @@ CRDFCoordinator :: ShowColumnHeaders ( )
|
||||||
mTreePane->MoveBy ( 0, columnHeaderFrame.height, false );
|
mTreePane->MoveBy ( 0, columnHeaderFrame.height, false );
|
||||||
mTreePane->ResizeFrameBy ( 0, -columnHeaderFrame.height, false );
|
mTreePane->ResizeFrameBy ( 0, -columnHeaderFrame.height, false );
|
||||||
|
|
||||||
|
CNavCenterScroller* scroller = dynamic_cast<CNavCenterScroller*>(FindPaneByID(kScrollerPaneID));
|
||||||
|
if ( scroller )
|
||||||
|
scroller->ColumnHeadersChangedVisibility ( true, columnHeaderFrame.height );
|
||||||
|
|
||||||
} // ShowColumnHeaders
|
} // ShowColumnHeaders
|
||||||
|
|
||||||
|
|
||||||
|
@ -200,6 +205,10 @@ CRDFCoordinator :: HideColumnHeaders ( )
|
||||||
mTreePane->MoveBy ( 0, -columnHeaderFrame.height, false );
|
mTreePane->MoveBy ( 0, -columnHeaderFrame.height, false );
|
||||||
mTreePane->ResizeFrameBy ( 0, columnHeaderFrame.height, false );
|
mTreePane->ResizeFrameBy ( 0, columnHeaderFrame.height, false );
|
||||||
|
|
||||||
|
CNavCenterScroller* scroller = dynamic_cast<CNavCenterScroller*>(FindPaneByID(kScrollerPaneID));
|
||||||
|
if ( scroller )
|
||||||
|
scroller->ColumnHeadersChangedVisibility ( false, columnHeaderFrame.height );
|
||||||
|
|
||||||
} // HideColumnHeaders
|
} // HideColumnHeaders
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -87,7 +87,8 @@ protected:
|
||||||
public:
|
public:
|
||||||
enum { class_ID = 'RCoo', pane_ID = 'RCoo' };
|
enum { class_ID = 'RCoo', pane_ID = 'RCoo' };
|
||||||
enum {
|
enum {
|
||||||
msg_ActiveSelectorChanged = 'selc' // broadcast when selector changes
|
msg_ActiveSelectorChanged = 'selc', // broadcast when selector changes
|
||||||
|
kScrollerPaneID = 'HyTC' // pane id of the scroller containing tree/headers/etc
|
||||||
};
|
};
|
||||||
|
|
||||||
// Set the current workspace to a particular kind of workspace
|
// Set the current workspace to a particular kind of workspace
|
||||||
|
|
Загрузка…
Ссылка в новой задаче