[Sailfish] switch to default ``Theme.fontSizeSmall` when `settings.webviewFontSize`` is out of range
This commit is contained in:
parent
3eccd15b0e
commit
b1f160f4f5
1 changed files with 10 additions and 0 deletions
|
|
@ -469,6 +469,16 @@ Page {
|
||||||
}
|
}
|
||||||
|
|
||||||
Component.onCompleted: {
|
Component.onCompleted: {
|
||||||
|
if (settings.webviewFontSize < Theme.fontSizeTiny || settings.webviewFontSize > Theme.fontSizeExtraLarge) {
|
||||||
|
settings.webviewFontSize = Theme.fontSizeSmall;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
Component.onCompleted: {
|
||||||
|
// go for default if out of range
|
||||||
|
if (settings.webviewFontSize < Theme.fontSizeTiny || settings.webviewFontSize > Theme.fontSizeExtraLarge) {
|
||||||
|
settings.webviewFontSize = Theme.fontSizeSmall;
|
||||||
|
}
|
||||||
itemView.fontSize = settings.webviewFontSize
|
itemView.fontSize = settings.webviewFontSize
|
||||||
showFeedItem();
|
showFeedItem();
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue