From c0356309aac6cdba0089dfda436733fae4718b0f Mon Sep 17 00:00:00 2001 From: ilikethese Date: Mon, 22 Jan 2024 17:55:43 +0800 Subject: [PATCH] fix(layout): fix layout border default css direction --- dom/src/dom/taitank_layout_node.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dom/src/dom/taitank_layout_node.cc b/dom/src/dom/taitank_layout_node.cc index 3eceac2da01..b4b5bba339f 100644 --- a/dom/src/dom/taitank_layout_node.cc +++ b/dom/src/dom/taitank_layout_node.cc @@ -81,7 +81,7 @@ const std::map kPositionMap = {{kLeft, CSSDirection:: {kTop, CSSDirection::CSS_TOP}, {kBottom, CSSDirection::CSS_BOTTOM}}; -const std::map kBorderMap = {{kBorderWidth, CSSDirection::CSS_LEFT}, +const std::map kBorderMap = {{kBorderWidth, CSSDirection::CSS_ALL}, {kBorderLeftWidth, CSSDirection::CSS_LEFT}, {kBorderTopWidth, CSSDirection::CSS_TOP}, {kBorderRightWidth, CSSDirection::CSS_RIGHT},