https://bugs.kde.org/show_bug.cgi?id=413394

Gianluca Pettinello <gianluca.pettine...@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |gianluca.pettinello@gmail.c
                   |                            |om

--- Comment #8 from Gianluca Pettinello <gianluca.pettine...@gmail.com> ---
workaround
file: DigitalClock.qml

        State {
            name: "oneLineDate"
            // the one-line mode has no effect on a vertical panel because it
would never fit
            when: plasmoid.formFactor !== PlasmaCore.Types.Vertical &&
main.oneLineMode

            PropertyChanges {
                target: main
                Layout.fillHeight: true
                Layout.fillWidth: false
                Layout.minimumWidth: contentItem.width
                Layout.maximumWidth: Layout.minimumWidth

            }

            PropertyChanges {
                target: contentItem

                height: sizehelper.height
                width: dateLabel.width + dateLabel.anchors.rightMargin +
labelsGrid.width
            }

            AnchorChanges {
                target: labelsGrid

                anchors.right: contentItem.right
            }

            PropertyChanges {
                target: dateLabel

                height: timeLabel.height
                width: dateLabel.paintedWidth + PlasmaCore.Units.smallSpacing

                font.pixelSize: 20 //workaround
                verticalAlignment: Text.AlignVCenter
                anchors.rightMargin: labelsGrid.columnSpacing

                fontSizeMode: Text.VerticalFit
            }

            AnchorChanges {
                target: dateLabel

                anchors.right: labelsGrid.left
                anchors.verticalCenter: labelsGrid.verticalCenter
            }

            PropertyChanges {
                target: timeLabel

                height: sizehelper.height
                width: sizehelper.contentWidth

                font.pixelSize: 20 //workaround
                fontSizeMode: Text.VerticalFit
            }

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to