Skip to content

Commit e702b7e

Browse files
kaustuvpokharelgabriel-bolbotina
authored andcommitted
List and delegates, all uses the scrollbar if opened on desktop
1 parent 2345869 commit e702b7e

6 files changed

Lines changed: 6 additions & 6 deletions

File tree

app/qml/components/MMListDelegate.qml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ Item {
4444
implicitWidth: ListView?.view?.width ?? 0 // in case ListView is injected as attached property (usually it is)
4545
implicitHeight: contentLayout.implicitHeight
4646
height: visible ? implicitHeight : 0.1 // hide invisible items, for some reason setting 0 does not work ¯\_(ツ)_/¯
47-
width: implicitWidth - root.scrollSpace
47+
width: implicitWidth - ListView.view.scrollSpace
4848

4949
MouseArea {
5050
anchors.fill: contentLayout

app/qml/form/MMFormPage.qml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -276,7 +276,7 @@ Page {
276276

277277
Item {
278278

279-
width: ListView.view.width
279+
width: ListView.view.width - ListView.view.scrollSpace
280280
implicitHeight: childrenRect.height
281281

282282
// In future, better to filter such fields in the field proxy model instead

app/qml/form/MMPreviewDrawer.qml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,7 @@ Item {
198198
model: root.controller.fieldModel
199199

200200
delegate: Item {
201-
width: ListView.view.width
201+
width: ListView.view.width - ListView.view.width
202202
height: childrenRect.height
203203

204204
Column {

app/qml/project/MMProjectList.qml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,6 @@ Item {
9494
delegate: MMProjectComponents.MMProjectDelegate {
9595
id: projectDelegate
9696

97-
width: ListView.view.width
9897
height: visible ? implicitHeight : 0
9998

10099
projectDisplayName: root.projectModelType === MM.ProjectsModel.WorkspaceProjectsModel ? model.ProjectName : model.ProjectFullName
@@ -202,7 +201,7 @@ Item {
202201

203202
topPadding: noLocalProjectsMessageContainer.visible ? noLocalProjectsMessageContainer.height + __style.margin40 : 0
204203

205-
width: ListView.view.width
204+
width: ListView.view.width - ListView.view.scrollSpace
206205

207206
Item {
208207
width: parent.width

app/qml/project/MMProjectWizardPage.qml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ MMComponents.MMPage {
7070
delegate: MMProjectComponents.MMProjectWizardDelegate {
7171
id: fieldDelegate
7272

73-
width: ListView.view.width
73+
width: ListView.view.width - ListView.view.width
7474

7575
// find current index in the model
7676
comboboxField.comboboxModel: typesmodel

app/qml/project/components/MMProjectDelegate.qml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ Control {
3737
signal showChangesRequested()
3838

3939
height: implicitHeight
40+
width: ListView.view.width - ListView.view.scrollSpace
4041

4142
topPadding: __style.margin20
4243
rightPadding: __style.margin20

0 commit comments

Comments
 (0)