|
|
|
@ -246,9 +246,15 @@ void PrimaryConfigView::syncGeometry()
|
|
|
|
|
|
|
|
|
|
switch (m_latteView->formFactor()) {
|
|
|
|
|
case Plasma::Types::Horizontal: {
|
|
|
|
|
xPos = (m_complexity == Latte::Types::ExpertSettings) ?
|
|
|
|
|
availGeometry.x() + availGeometry.width() - size.width() :
|
|
|
|
|
scrGeometry.center().x() - size.width() / 2;
|
|
|
|
|
if (m_complexity == Latte::Types::ExpertSettings) {
|
|
|
|
|
if (qApp->isLeftToRight()) {
|
|
|
|
|
xPos = availGeometry.x() + availGeometry.width() - size.width();
|
|
|
|
|
} else {
|
|
|
|
|
xPos = availGeometry.x();
|
|
|
|
|
}
|
|
|
|
|
} else {
|
|
|
|
|
xPos = scrGeometry.center().x() - size.width() / 2;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (location == Plasma::Types::TopEdge) {
|
|
|
|
|
yPos = scrGeometry.y() + clearThickness;
|
|
|
|
|