mirror of
https://github.com/servo/servo.git
synced 2025-06-02 15:25:31 +00:00
ohos: servoshell: Use Flex{Column} to avoid Column bug (#37087)
The `Column()` height and thus also the XComponent height extends beyond the physical display for unknown reasons. This is a problem on websites that have a footer bar, since the footer is partially below the display end. Using Flex with Column direction works as expected. Testing: Manual inspection with DevEco Testing inspecting the height of the children elements in ArkUI Fixes: Part of the servoshell surface extending beyond the physical screen on ohos Signed-off-by: Jonathan Schwender <schwenderjonathan@gmail.com>
This commit is contained in:
parent
d18000fee8
commit
78f74d0d5e
1 changed files with 4 additions and 1 deletions
|
@ -76,7 +76,10 @@ struct Index {
|
|||
}
|
||||
|
||||
build() {
|
||||
Column() {
|
||||
// We originally use `Column()` here, but for some reason the column
|
||||
// extends beyond the edge of the screen. This does not happen with
|
||||
// Flex.
|
||||
Flex({ direction: FlexDirection.Column}) {
|
||||
Row() {
|
||||
Button('⇦').backgroundColor(Color.White)
|
||||
.fontColor(Color.Black)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue