Set a minimum width for the sensor view, closes #165
This commit is contained in:
parent
03f00a0fff
commit
924fe1cf20
2 changed files with 3 additions and 1 deletions
|
@ -3,6 +3,7 @@ import QtDesktop 0.1
|
|||
|
||||
Column {
|
||||
id: sensorList
|
||||
property int minimumWidth: main.state == "EDIT" ? 770 : 475
|
||||
spacing: 1
|
||||
|
||||
BorderImage {
|
||||
|
|
|
@ -15,7 +15,8 @@ Item {
|
|||
|
||||
SensorList {
|
||||
id: sensorList
|
||||
width: main.width-scrollArea.verticalScrollBar.width
|
||||
property int calculatedWidth: main.width-scrollArea.verticalScrollBar.width
|
||||
width: (calculatedWidth < minimumWidth ? minimumWidth : calculatedWidth)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue