improvements for calculations

pull/19/head
Michail Vourlakos 5 years ago
parent ff01f266e4
commit ca0e065441

@ -157,8 +157,10 @@ void Positioner::init()
connect(m_view, &Latte::View::behaveAsPlasmaPanelChanged, this, &Positioner::syncGeometry);
connect(m_view, &Latte::View::maxThicknessChanged, this, &Positioner::syncGeometry);
connect(m_view, &Latte::View::maxLengthChanged, this, &Positioner::syncGeometry);
connect(m_view, &Latte::View::offsetChanged, this, &Positioner::syncGeometry);
connect(m_view, &Latte::View::offsetChanged, this, [&]() {
updatePosition(m_lastAvailableScreenRect);
});
connect(m_view, &Latte::View::locationChanged, this, [&]() {
updateFormFactor();
@ -169,6 +171,12 @@ void Positioner::init()
updateCanvasGeometry(m_lastAvailableScreenRect);
});
connect(m_view, &Latte::View::maxLengthChanged, this, [&]() {
if (m_view->behaveAsPlasmaPanel()) {
syncGeometry();
}
});
connect(m_view, &Latte::View::normalThicknessChanged, this, [&]() {
if (m_view->behaveAsPlasmaPanel()) {
syncGeometry();

Loading…
Cancel
Save