SVN commit 1046449 by ggarand:
use correct method for computation of percentage height in relative
positionning:
calcPercentageHeight() properly handles cases where CB recursion
is necessary, and other quirks.
Thanks to Gérard Talbot for accurately spotting the regression.
BUG: 169635
M +14 -2 render_box.cpp
--- trunk/KDE/kdelibs/khtml/rendering/render_box.cpp #1046448:1046449
@@ -1083,11 +1083,23 @@
tx -= style()->right().width(containingBlockWidth());
if(!style()->top().isAuto())
{
- ty += style()->top().width(containingBlockHeight());
+ if (style()->top().isPercent()) {
+ int ph = calcPercentageHeight(style()->top());
+ if (ph != -1)
+ ty += ph;
+ } else {
+ ty += style()->top().width(containingBlockHeight());
+ }
}
else if(!style()->bottom().isAuto())
{
- ty -= style()->bottom().width(containingBlockHeight());
+ if (style()->top().isPercent()) {
+ int ph = calcPercentageHeight(style()->top());
+ if (ph != -1)
+ ty -= ph;
+ } else {
+ ty -= style()->bottom().width(containingBlockHeight());
+ }
}
}
_______________________________________________
Khtml-cvs mailing list
Khtml-cvs@...
https://mail.kde.org/mailman/listinfo/khtml-cvs