Skip to content

Commit

Permalink
resolve Text overflow bug
Browse files Browse the repository at this point in the history
  • Loading branch information
raphaelscholle committed Jul 26, 2024
1 parent 1936429 commit 2c0cd23
Showing 1 changed file with 14 additions and 4 deletions.
18 changes: 14 additions & 4 deletions qml/ui/configpopup/openhd_settings/ChooseResolutionDialoque.qml
Original file line number Diff line number Diff line change
Expand Up @@ -92,13 +92,23 @@ Card {
}


cardBody: Column{
cardBody: Column {
spacing: 10
padding: 10
Text{
Text {
width: 200
text: "Your Camera: "+m_cam_type_as_string;
text: {
var camType = m_cam_type_as_string;
if (camType.length > 18) {
var underscoreIndex = camType.indexOf('_');
if (underscoreIndex !== -1) {
camType = camType.substring(underscoreIndex + 1);
}
}
return "Your Camera: " + camType;
}
}

Text{
width: 200
text: "Default Resolution: "+m_default_resolution_fps
Expand Down Expand Up @@ -167,7 +177,7 @@ Card {
Layout.preferredWidth: 150
text: "CANCEL"
onPressed: {
close();
close();
}
}
Button{
Expand Down

0 comments on commit 2c0cd23

Please sign in to comment.