Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: min width with padding #843

Merged
merged 5 commits into from
Nov 23, 2021
Merged

fix: min width with padding #843

merged 5 commits into from
Nov 23, 2021

Conversation

temper357
Copy link
Contributor

@temper357 temper357 commented Nov 4, 2021

Closes #822

修复 width 不存在,minWidth 且 padding 存在时,layout width 计算错误 bug。
由于上述 Bug 存在,minWidth/minHeight, border 存在但是 width/height 不存在的已有测试用例截图有问题一并修复。

@temper357 temper357 changed the title [WIP] fix: min width with padding fix: min width with padding Nov 4, 2021
@cnryb
Copy link
Member

cnryb commented Nov 8, 2021

这个 PR 的代码,能够修复 #822 中描述的问题

Base automatically changed from feat-css-style-sheet to main November 19, 2021 14:03
…-with-padding

# Conflicts:
#	kraken/lib/src/rendering/box_model.dart
@yuanyan yuanyan merged commit f4389d3 into main Nov 23, 2021
@yuanyan yuanyan deleted the fix/minWidth-with-padding branch November 23, 2021 15:12
@andycall
Copy link
Member

@yuanyan 这个 PR 里面有 fit 没看到

@andycall andycall mentioned this pull request Nov 26, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

minWidth 和 padding 组合跟浏览器表现不一致
4 participants