Fix for bug #2276, and some initial support for 'right' and 'bottom'

for absolutely positioned elements
This commit is contained in:
troy@netscape.com
1999-01-13 06:37:31 +00:00
parent 132fff4acf
commit 592b9af63f
18 changed files with 607 additions and 109 deletions

View File

@@ -1493,7 +1493,8 @@ NS_IMETHODIMP nsFrame::IsPercentageBase(PRBool& aBase) const
const nsStyleDisplay* display;
GetStyleData(eStyleStruct_Display, (const nsStyleStruct*&)display);
if ((display->mDisplay == NS_STYLE_DISPLAY_BLOCK) ||
(display->mDisplay == NS_STYLE_DISPLAY_LIST_ITEM)) {
(display->mDisplay == NS_STYLE_DISPLAY_LIST_ITEM) ||
(display->mDisplay == NS_STYLE_DISPLAY_TABLE_CELL)) {
aBase = PR_TRUE;
}
else {