зеркало из https://github.com/mozilla/pjs.git
Made splitters get their cursors from CSS. Bug #23916 -r Hyatt
This commit is contained in:
Родитель
72d24207a1
Коммит
3115140ada
|
@ -60,7 +60,7 @@ public:
|
|||
nscoord current;
|
||||
nscoord changed;
|
||||
nsIFrame* child;
|
||||
float flex;
|
||||
PRInt32 flex;
|
||||
PRInt32 index;
|
||||
};
|
||||
|
||||
|
@ -300,12 +300,16 @@ nsSplitterFrame::GetCursor(nsIPresContext* aPresContext,
|
|||
nsPoint& aPoint,
|
||||
PRInt32& aCursor)
|
||||
{
|
||||
return nsBoxFrame::GetCursor(aPresContext, aPoint, aCursor);
|
||||
|
||||
/*
|
||||
if (IsHorizontal())
|
||||
aCursor = NS_STYLE_CURSOR_N_RESIZE;
|
||||
else
|
||||
aCursor = NS_STYLE_CURSOR_W_RESIZE;
|
||||
|
||||
return NS_OK;
|
||||
*/
|
||||
}
|
||||
|
||||
NS_IMETHODIMP
|
||||
|
|
|
@ -490,7 +490,7 @@ titledbutton.status-bar:active {
|
|||
/******* Splitters *******/
|
||||
|
||||
splitter {
|
||||
cursor: arrow;
|
||||
cursor: e-resize;
|
||||
min-width: 5px;
|
||||
min-height: 5px;
|
||||
}
|
||||
|
@ -541,6 +541,15 @@ window[align="horizontal"]>splitter grippy {
|
|||
min-height: 60px;
|
||||
}
|
||||
|
||||
box[align="vertical"]>splitter {
|
||||
/* a vertical splitter */
|
||||
cursor: n-resize;
|
||||
}
|
||||
|
||||
window[align="vertical"]>splitter {
|
||||
/* a vertical splitter */
|
||||
cursor: n-resize;
|
||||
}
|
||||
|
||||
/**
|
||||
* gray horizontal splitter for pane views
|
||||
|
|
Загрузка…
Ссылка в новой задаче