Skip to content

Commit

Permalink
Fix BottomSheet padding
Browse files Browse the repository at this point in the history
  • Loading branch information
plfiorini committed Jun 28, 2024
1 parent 87f07d9 commit 55547e8
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 13 deletions.
12 changes: 0 additions & 12 deletions src/imports/controls/qml/BottomSheet.qml
Original file line number Diff line number Diff line change
Expand Up @@ -20,23 +20,11 @@ import Fluid as Fluid
Drawer {
id: bottomSheet

/*!
\internal
*/
default property alias content: containerPane.data

property int maxHeight: ApplicationWindow.contentItem.height - ApplicationWindow.header.height

modal: true
edge: Qt.BottomEdge

width: parent.width
height: Math.min(containerPane.childrenRect.height, maxHeight)

Pane {
id: containerPane

width: parent.width
height: parent.height
}
}
2 changes: 1 addition & 1 deletion src/imports/controls/qml/BottomSheetList.qml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ BottomSheet {
height: Math.min(implicitHeight, maxHeight)
implicitHeight: listViewContainer.implicitHeight + (header.visible ? header.height : 0)

padding: 16
padding: 0

Column {
id: column
Expand Down

0 comments on commit 55547e8

Please sign in to comment.