if size is empty don't do the compact check
with a null size none of the representations will work anyways. an empty size may happen when the applet has just been loaded and the containment still has to adjust it
This commit is contained in:
parent
ee510e5fca
commit
1586c1b82a
@ -634,7 +634,8 @@ void AppletInterface::geometryChanged(const QRectF &newGeometry, const QRectF &o
|
||||
|
||||
void AppletInterface::compactRepresentationCheck()
|
||||
{
|
||||
if (!m_qmlObject->rootObject() || qobject_cast<ContainmentInterface *>(this)) {
|
||||
if (width() <= 0 || height() <= 0 || !m_qmlObject->rootObject() ||
|
||||
qobject_cast<ContainmentInterface *>(this)) {
|
||||
return;
|
||||
}
|
||||
|
||||
@ -648,7 +649,6 @@ void AppletInterface::compactRepresentationCheck()
|
||||
minHint.setHeight(m_qmlObject->rootObject()->property("minimumHeight").toReal());
|
||||
}
|
||||
|
||||
//TODO: completely arbitrary for now
|
||||
if (width() < minHint.width() || height() < minHint.height()) {
|
||||
m_expanded = false;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user