summaryrefslogtreecommitdiff
path: root/tizen/src/ui/displaybase.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tizen/src/ui/displaybase.cpp')
-rw-r--r--tizen/src/ui/displaybase.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/tizen/src/ui/displaybase.cpp b/tizen/src/ui/displaybase.cpp
index b255575fe4..c9fe65aa18 100644
--- a/tizen/src/ui/displaybase.cpp
+++ b/tizen/src/ui/displaybase.cpp
@@ -46,6 +46,7 @@ DisplayBase::DisplayBase(DisplayType *displayForm, QSize resolution, qreal scale
{
this->win = (MainWindow *)widget->parentWidget();
this->rect = displayForm->getRect();
+ this->offset = displayForm->getOffset();
this->maskImage = displayForm->getMask();
this->rotateAngle = displayForm->getAngle();
this->scaleFactor = scaleFactor;
@@ -175,7 +176,7 @@ void DisplayBase::updateGeometry()
qreal sx = rect.x() * scaleFactor;
qreal sy = rect.y() * scaleFactor;
- widget->setGeometry(qRound(sx), qRound(sy),
+ widget->setGeometry(qRound(sx) + offset.x(), qRound(sy) + offset.y(),
rect.width() * scaleFactor,
rect.height() * scaleFactor);
}