Merge pull request #4652 from Ultimaker/CL-1119_monitor_tab_printer_names_clipped_too_short

CL-1119 Use shorter machine name for skeleton and longer for text (Fix for 3.6)
This commit is contained in:
Ian Paschal 2018-10-25 16:52:50 +02:00 committed by GitHub
commit 75e351304c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -118,7 +118,10 @@ Item {
Item {
id: machineNameLabel;
height: UM.Theme.getSize("monitor_text_line").height;
width: Math.round(parent.width * 0.3);
width: {
var percent = printer ? 0.75 : 0.3;
return Math.round(parent.width * percent);
}
// Skeleton
Rectangle {