for Nav compatibility, 0-width cells do not have insets

git-svn-id: svn://10.0.0.236/trunk@5411 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
buster
1998-07-13 20:41:38 +00:00
parent 043e7f9a28
commit 1a959d659a
4 changed files with 14 additions and 6 deletions

View File

@@ -369,8 +369,12 @@ NS_METHOD nsTableCellFrame::Reflow(nsIPresContext* aPresContext,
if (nsnull!=aDesiredSize.maxElementSize)
{
*aDesiredSize.maxElementSize = *pMaxElementSize;
aDesiredSize.maxElementSize->height += topInset + bottomInset;
aDesiredSize.maxElementSize->width += leftInset + rightInset;
// NAV4 compatibility: only add insets if cell content was not 0 min height
if (0!=pMaxElementSize->height)
aDesiredSize.maxElementSize->height += topInset + bottomInset;
// NAV4 compatibility: only add insets if cell content was not 0 min width
if (0!=pMaxElementSize->width)
aDesiredSize.maxElementSize->width += leftInset + rightInset;
}
SetDesiredSize(aDesiredSize);
if (nsnull!=aDesiredSize.maxElementSize)