Στις 12/03/2013 11:45 μμ, ο/η Marco Martin έγραψε:
ok, so only thing you have to do is:
Component.onCompleted: {
plasmoid.aspectRatioMode = "ConstrainedSquare"
}
and should behave properly
Well it doesnt,
to test it I have set Panel Icon Size to 256,
the code is just this in the main file:
property int minimumWidth: 150 //minimumWidth is needed in order to
show the compactRepresentation in panel
property int minimumHeight: 150 //minimumHeight is needed in order to
show the compactRepresentation in panel
property Component compactRepresentationPanel: Component{
CompactRepresentation{} }
//the CompactRepresentation.qml does not touch at all widths and heights
property Component compactRepresentation: compactRepresentationPanel
Component.onCompleted:{
plasmoid.aspectRatioMode = "ConstrainedSquare"
}
BTW, the code works just fine in Desktop but not in panel
Cheers,
Michail
_______________________________________________
Plasma-devel mailing list
Plasma-devel@kde.org
https://mail.kde.org/mailman/listinfo/plasma-devel