From 4854ab513024a779ed219795a560f2e2cc259ac0 Mon Sep 17 00:00:00 2001 From: leerang song Date: Thu, 27 Jun 2013 11:53:30 +0900 Subject: [PATCH] The size of PD is unable to fixed to the width of device [Issue#] TDIS-6136 [Problem] The size of PD is unable to fixed to the width of device [Cause] web-provider use the default PD width instaead of screen width. [Solution] Use the screen-width getting from the eccore_x_window_size_get API Change-Id: Ie02b26d6204d6cae82ebc4682584fb231a47dfcb --- src/Daemon/BoxDaemonImpl.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Daemon/BoxDaemonImpl.cpp b/src/Daemon/BoxDaemonImpl.cpp index 47dda06..d88e0c1 100755 --- a/src/Daemon/BoxDaemonImpl.cpp +++ b/src/Daemon/BoxDaemonImpl.cpp @@ -228,8 +228,8 @@ int BoxDaemonImpl::pdCreateCallback(ProviderEventArgPtr arg, void* data) if (arg->info.pd_create.w == 0 || arg->info.pd_create.h == 0) { return -1; } - - info->pdWidth = arg->info.pd_create.w; + //Use the screen width to fix the device width + ecore_x_window_size_get(0, &info->pdWidth, NULL); info->pdHeight = arg->info.pd_create.h; info->pdX = arg->info.pd_create.x; info->pdY = arg->info.pd_create.y; -- 2.7.4