Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1249)

Issue 439063002: flexbox: incorrect flexbox height with overflow:auto on flex item (Closed)

Created:
6 years, 4 months ago by harpreet.sk
Modified:
5 years, 7 months ago
CC:
blink-reviews, blink-reviews-rendering, cbiesinger, eae+blinkwatch, jchaffraix+rendering, leviw+renderwatch, pdr., rune+blink, zoltan1
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Project:
blink
Visibility:
Public.

Description

flexbox: incorrect flexbox height with overflow:auto on flex item Flexbox with flex-direction: row/row-reverse and with overflow:auto on flex item shows incorrect flexbox height. The flexbox seems to use the height from before adding the horizontal scrollbar. This bug is occuring because we are not taking into account the horizontal scrollbar height of flex-item while computing the childCrossAxisMarginBoxExtent. This patch fixes this bug by adding scrollbarLogicalHeight while calculating childCrossAxisMarginBoxExtent. BUG=327446 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=179861

Patch Set 1 #

Patch Set 2 : #

Total comments: 2

Patch Set 3 : #

Total comments: 4

Patch Set 4 : #

Patch Set 5 : #

Total comments: 8

Patch Set 6 : Addressing the nit #

Unified diffs Side-by-side diffs Delta from patch set Stats (+98 lines, -0 lines) Patch
A LayoutTests/css3/flexbox/flexbox-height-with-overflow-auto.html View 1 2 3 4 5 1 chunk +92 lines, -0 lines 0 comments Download
A + LayoutTests/css3/flexbox/flexbox-height-with-overflow-auto-expected.txt View 1 2 3 0 chunks +-1 lines, --1 lines 0 comments Download
M Source/core/rendering/RenderFlexibleBox.h View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download
M Source/core/rendering/RenderFlexibleBox.cpp View 1 2 3 4 5 2 chunks +6 lines, -1 line 0 comments Download

Messages

Total messages: 15 (0 generated)
harpreet.sk
ptal...
6 years, 4 months ago (2014-08-04 09:03:03 UTC) #1
harpreet.sk
ptal..
6 years, 4 months ago (2014-08-05 15:33:47 UTC) #2
cbiesinger
https://codereview.chromium.org/439063002/diff/20001/Source/core/rendering/RenderFlexibleBox.cpp File Source/core/rendering/RenderFlexibleBox.cpp (right): https://codereview.chromium.org/439063002/diff/20001/Source/core/rendering/RenderFlexibleBox.cpp#newcode1114 Source/core/rendering/RenderFlexibleBox.cpp:1114: childCrossAxisMarginBoxExtent = maxAscent + maxDescent + child->scrollbarLogicalHeight(); Doesn't this ...
6 years, 4 months ago (2014-08-06 02:52:49 UTC) #3
harpreet.sk
Incorporated the changes asked. Please take a look. https://codereview.chromium.org/439063002/diff/20001/Source/core/rendering/RenderFlexibleBox.cpp File Source/core/rendering/RenderFlexibleBox.cpp (right): https://codereview.chromium.org/439063002/diff/20001/Source/core/rendering/RenderFlexibleBox.cpp#newcode1114 Source/core/rendering/RenderFlexibleBox.cpp:1114: childCrossAxisMarginBoxExtent ...
6 years, 4 months ago (2014-08-06 13:20:23 UTC) #4
tony
Please add some vertical-rl test cases.
6 years, 4 months ago (2014-08-06 16:43:09 UTC) #5
tony
https://codereview.chromium.org/439063002/diff/40001/Source/core/rendering/RenderFlexibleBox.cpp File Source/core/rendering/RenderFlexibleBox.cpp (right): https://codereview.chromium.org/439063002/diff/40001/Source/core/rendering/RenderFlexibleBox.cpp#newcode1115 Source/core/rendering/RenderFlexibleBox.cpp:1115: childCrossAxisMarginBoxExtent = maxAscent + maxDescent + crossAxisScrollbarExtentForChild; I don't ...
6 years, 4 months ago (2014-08-06 16:47:22 UTC) #6
cbiesinger
https://codereview.chromium.org/439063002/diff/40001/Source/core/rendering/RenderFlexibleBox.cpp File Source/core/rendering/RenderFlexibleBox.cpp (right): https://codereview.chromium.org/439063002/diff/40001/Source/core/rendering/RenderFlexibleBox.cpp#newcode1107 Source/core/rendering/RenderFlexibleBox.cpp:1107: LayoutUnit crossAxisScrollbarExtentForChild = !isColumnFlow() ? child->scrollbarLogicalHeight() : child->instrinsicScrollbarLogicalWidth(); I'd ...
6 years, 4 months ago (2014-08-07 02:57:01 UTC) #7
harpreet.sk
Uploaded a new solution. In the new solution we are not adding crossAxisScrollbarExtentForChild for baseline ...
6 years, 4 months ago (2014-08-07 12:46:39 UTC) #8
tony
LGTM, but cbiesinger may want to take a look too. https://codereview.chromium.org/439063002/diff/80001/Source/core/rendering/RenderFlexibleBox.cpp File Source/core/rendering/RenderFlexibleBox.cpp (right): https://codereview.chromium.org/439063002/diff/80001/Source/core/rendering/RenderFlexibleBox.cpp#newcode1116 ...
6 years, 4 months ago (2014-08-07 16:42:31 UTC) #9
cbiesinger
https://codereview.chromium.org/439063002/diff/80001/LayoutTests/css3/flexbox/flexbox-height-with-overflow-auto.html File LayoutTests/css3/flexbox/flexbox-height-with-overflow-auto.html (right): https://codereview.chromium.org/439063002/diff/80001/LayoutTests/css3/flexbox/flexbox-height-with-overflow-auto.html#newcode6 LayoutTests/css3/flexbox/flexbox-height-with-overflow-auto.html:6: border:5px solid green; nit: please consistently add a space ...
6 years, 4 months ago (2014-08-08 03:47:29 UTC) #10
cbiesinger
lgtm if you make tony's and my suggested changes https://codereview.chromium.org/439063002/diff/80001/LayoutTests/css3/flexbox/flexbox-height-with-overflow-auto.html File LayoutTests/css3/flexbox/flexbox-height-with-overflow-auto.html (right): https://codereview.chromium.org/439063002/diff/80001/LayoutTests/css3/flexbox/flexbox-height-with-overflow-auto.html#newcode28 LayoutTests/css3/flexbox/flexbox-height-with-overflow-auto.html:28: ...
6 years, 4 months ago (2014-08-08 03:56:39 UTC) #11
harpreet.sk
Incorporated the changes asked... https://codereview.chromium.org/439063002/diff/80001/LayoutTests/css3/flexbox/flexbox-height-with-overflow-auto.html File LayoutTests/css3/flexbox/flexbox-height-with-overflow-auto.html (right): https://codereview.chromium.org/439063002/diff/80001/LayoutTests/css3/flexbox/flexbox-height-with-overflow-auto.html#newcode6 LayoutTests/css3/flexbox/flexbox-height-with-overflow-auto.html:6: border:5px solid green; On 2014/08/08 ...
6 years, 4 months ago (2014-08-08 05:35:04 UTC) #12
leviw_travelin_and_unemployed
lgtm
6 years, 4 months ago (2014-08-08 17:58:27 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/harpreet.sk@samsung.com/439063002/100001
6 years, 4 months ago (2014-08-08 17:59:04 UTC) #14
commit-bot: I haz the power
6 years, 4 months ago (2014-08-08 19:46:36 UTC) #15
Message was sent while issue was closed.
Change committed as 179861

Powered by Google App Engine
This is Rietveld 408576698