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

Unified Diff: Source/core/rendering/RenderButton.cpp

Issue 278603002: Centering text inside a button set to display flex with justify-content: center is impossible (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: New patchset based on comments Created 6 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: Source/core/rendering/RenderButton.cpp
diff --git a/Source/core/rendering/RenderButton.cpp b/Source/core/rendering/RenderButton.cpp
index 4a58833036388f69ba2117ec3f5f007b366bb000..0511715042297d9b7d86aa589d54fa731d428b13 100644
--- a/Source/core/rendering/RenderButton.cpp
+++ b/Source/core/rendering/RenderButton.cpp
@@ -97,6 +97,7 @@ void RenderButton::setupInnerStyle(RenderStyle* innerStyle)
innerStyle->setMarginTop(Length());
innerStyle->setMarginBottom(Length());
innerStyle->setFlexDirection(style()->flexDirection());
+ innerStyle->setJustifyContent(style()->justifyContent());
cbiesinger 2014/05/21 00:18:10 Can you add these properties as well: setFlexWrap
harpreet.sk 2014/05/21 06:39:58 Done.
}
bool RenderButton::canHaveGeneratedChildren() const

Powered by Google App Engine
This is Rietveld 408576698