Bug 154929 Wrong behavior when dragging splitter in mail thread pane

r=varga, sr=bryner, a=asa
omitted hidden columns when dragging
This commit is contained in:
kyle.yuan%sun.com 2002-07-16 01:23:43 +00:00
Родитель d17c215334
Коммит fae3654e60
1 изменённых файлов: 4 добавлений и 3 удалений

Просмотреть файл

@ -859,11 +859,12 @@ nsSplitterFrameInner::MouseDown(nsIDOMEvent* aMouseEvent)
childBox->GetBounds(r);
r.Inflate(margin);
nsAutoString fixed;
nsAutoString fixed, hidden;
content->GetAttr(kNameSpaceID_None, nsXULAtoms::fixed, fixed);
content->GetAttr(kNameSpaceID_None, nsHTMLAtoms::hidden, hidden);
if (count < childIndex) {
if (!fixed.Equals(NS_LITERAL_STRING("true"))) {
if (!fixed.Equals(NS_LITERAL_STRING("true")) && !hidden.Equals(NS_LITERAL_STRING("true"))) {
mChildInfosBefore[mChildInfosBeforeCount].child = childBox;
mChildInfosBefore[mChildInfosBeforeCount].min = isHorizontal ? minSize.width : minSize.height;
mChildInfosBefore[mChildInfosBeforeCount].max = isHorizontal ? maxSize.width : maxSize.height;
@ -874,7 +875,7 @@ nsSplitterFrameInner::MouseDown(nsIDOMEvent* aMouseEvent)
mChildInfosBeforeCount++;
}
} else if (count > childIndex) {
if (!fixed.Equals(NS_LITERAL_STRING("true"))) {
if (!fixed.Equals(NS_LITERAL_STRING("true")) && !hidden.Equals(NS_LITERAL_STRING("true"))) {
mChildInfosAfter[mChildInfosAfterCount].child = childBox;
mChildInfosAfter[mChildInfosAfterCount].min = isHorizontal ? minSize.width : minSize.height;
mChildInfosAfter[mChildInfosAfterCount].max = isHorizontal ? maxSize.width : maxSize.height;