mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-05-02 08:44:25 +08:00
Fix scaling of language and theme drop-downs with width
The width was unknown because it's all in a scrollview that could have an infinite width. I now fixed it to scale with the viewport's width. Contributes to issue CURA-8682.
This commit is contained in:
parent
404e02d585
commit
b5e7a60a8a
@ -17,6 +17,8 @@ UM.PreferencesPage
|
|||||||
title: catalog.i18nc("@title:tab", "General")
|
title: catalog.i18nc("@title:tab", "General")
|
||||||
id: generalPreferencesPage
|
id: generalPreferencesPage
|
||||||
|
|
||||||
|
width: parent.width
|
||||||
|
|
||||||
function setDefaultLanguage(languageCode)
|
function setDefaultLanguage(languageCode)
|
||||||
{
|
{
|
||||||
//loops through the languageList and sets the language using the languageCode
|
//loops through the languageList and sets the language using the languageCode
|
||||||
@ -128,14 +130,14 @@ UM.PreferencesPage
|
|||||||
|
|
||||||
ScrollView
|
ScrollView
|
||||||
{
|
{
|
||||||
|
id: preferencesScrollView
|
||||||
width: parent.width
|
width: parent.width
|
||||||
height: parent.height
|
height: parent.height
|
||||||
|
|
||||||
Column
|
Column
|
||||||
{
|
{
|
||||||
|
|
||||||
//: Language selection label
|
|
||||||
UM.I18nCatalog{id: catalog; name: "cura"}
|
UM.I18nCatalog{id: catalog; name: "cura"}
|
||||||
|
width: preferencesScrollView.viewport.width
|
||||||
|
|
||||||
Label
|
Label
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user