diff --git a/resources/qml/Sidebar.qml b/resources/qml/Sidebar.qml
index 403c18a4ff..ed6b07cc4e 100644
--- a/resources/qml/Sidebar.qml
+++ b/resources/qml/Sidebar.qml
@@ -313,31 +313,32 @@ Rectangle
anchors.bottomMargin: Math.floor(UM.Theme.getSize("sidebar_margin").height * 2 + UM.Theme.getSize("progressbar").height + UM.Theme.getFont("default_bold").pixelSize)
}
- Rectangle
+ Item
{
id: printSpecs
anchors.left: parent.left
anchors.bottom: parent.bottom
anchors.leftMargin: UM.Theme.getSize("sidebar_margin").width
anchors.bottomMargin: UM.Theme.getSize("sidebar_margin").height
- height: timeDetails.height + timeSpecDescription.height + lengthSpec.height
+ height: timeDetails.height + costSpec.height
+ width: base.width - (saveButton.buttonRowWidth + UM.Theme.getSize("sidebar_margin").width)
visible: !monitoringPrint
+ clip: true
Label
{
id: timeDetails
anchors.left: parent.left
- anchors.bottom: timeSpecDescription.top
+ anchors.bottom: costSpec.top
font: UM.Theme.getFont("large")
color: UM.Theme.getColor("text_subtext")
text: (!base.printDuration || !base.printDuration.valid) ? catalog.i18nc("@label Hours and minutes", "00h 00min") : base.printDuration.getDisplayString(UM.DurationFormat.Short)
MouseArea
{
- id: infillMouseArea
+ id: timeDetailsMouseArea
anchors.fill: parent
hoverEnabled: true
- //enabled: base.settingsEnabled
onEntered:
{
@@ -345,19 +346,24 @@ Rectangle
if(base.printDuration.valid && !base.printDuration.isTotalDurationZero)
{
// All the time information for the different features is achieved
- var print_time = PrintInformation.getFeaturePrintTimes()
+ var print_time = PrintInformation.getFeaturePrintTimes();
+ var total_seconds = parseInt(base.printDuration.getDisplayString(UM.DurationFormat.Seconds))
// A message is created and displayed when the user hover the time label
- var content = catalog.i18nc("@tooltip", "Time information")
+ var content = catalog.i18nc("@tooltip", "Time specification
" + feature + + " | " + print_time[feature].getDisplayString(UM.DurationFormat.Short) + + " | " + Math.round(100 * parseInt(print_time[feature].getDisplayString(UM.DurationFormat.Seconds)) / total_seconds) + "%" + + " |