0.4.13: il testo del lettore non finisce piu' sotto il notch (portrait): finestra di lettura con inset Theme.statusBarHeight in cima
This commit is contained in:
@@ -41,6 +41,13 @@ Page {
|
||||
|
||||
allowedOrientations: Orientation.All
|
||||
|
||||
// Inset superiore per display con notch (Jolla Phone 2026): la finestra
|
||||
// dell'app inizia sopra la fine del ritaglio, quindi in portrait la zona di
|
||||
// lettura parte piu' in basso di un'altezza barra di stato, e il testo non
|
||||
// finisce mai sotto il notch (in landscape il notch e' laterale: gestito
|
||||
// dai margini orizzontali).
|
||||
property int notchInset: page.isPortrait ? Theme.statusBarHeight : 0
|
||||
|
||||
EpubBook {
|
||||
id: book
|
||||
}
|
||||
@@ -150,8 +157,9 @@ Page {
|
||||
Flickable {
|
||||
id: innerFlick
|
||||
anchors.fill: parent
|
||||
anchors.topMargin: page.previewMarginT >= 0
|
||||
? page.previewMarginT : appSettings.readerMarginV
|
||||
anchors.topMargin: page.notchInset + (page.previewMarginT >= 0
|
||||
? page.previewMarginT
|
||||
: appSettings.readerMarginV)
|
||||
anchors.bottomMargin: page.previewMarginT >= 0
|
||||
? page.previewMarginT : appSettings.readerMarginV
|
||||
contentHeight: readerContent.height
|
||||
|
||||
Reference in New Issue
Block a user