File tree Expand file tree Collapse file tree 1 file changed +11
-5
lines changed
src/quickgui/plugin/editor Expand file tree Collapse file tree 1 file changed +11
-5
lines changed Original file line number Diff line number Diff line change @@ -18,6 +18,7 @@ import QtQuick.Controls 2.2
18
18
import QtQuick.Layouts 1.1
19
19
import QtQuick.Controls 1.4 as Controls1
20
20
import QtGraphicalEffects 1.0
21
+ import QtQuick.Window 2.0
21
22
import QgsQuick 0.1 as QgsQuick
22
23
23
24
/**
@@ -167,11 +168,16 @@ Item {
167
168
parent: ApplicationWindow .overlay
168
169
anchors .centerIn : parent
169
170
170
- ColumnLayout {
171
- Rectangle {
171
+ ScrollView {
172
+ clip: true
173
+ width: parent .width
174
+ height: parent .height
175
+
176
+ ColumnLayout {
177
+ Rectangle {
172
178
id: calendarOverlay
173
179
color: " transparent"
174
- implicitWidth: ApplicationWindow . window .width * 0.8
180
+ implicitWidth: Math . min ( Screen .width , Screen . height ) * 0.8
175
181
implicitHeight: implicitWidth
176
182
visible: main .typeFromFieldFormat === " Date" || main .typeFromFieldFormat === " Date Time"
177
183
@@ -185,7 +191,6 @@ Item {
185
191
id: calendarGrid
186
192
anchors .left : parent .left
187
193
anchors .right : parent .right
188
- // Layout.alignment: Qt.AlignHCenter
189
194
columns: 1
190
195
implicitWidth: calendarOverlay .width
191
196
implicitHeight: calendarOverlay .height
@@ -302,7 +307,8 @@ Item {
302
307
popup .close ()
303
308
}
304
309
}
305
- }
310
+ }
311
+ }
306
312
}
307
313
}
308
314
You can’t perform that action at this time.
0 commit comments